mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
web: use notesWithHighlighting for full notes search
This commit is contained in:
@@ -37,7 +37,7 @@ function Home() {
|
||||
"notes",
|
||||
async (query, sortOptions) => {
|
||||
if (useStore.getState().context) return;
|
||||
return await db.lookup.notes(query, sortOptions);
|
||||
return await db.lookup.notesWithHighlighting(query, sortOptions);
|
||||
},
|
||||
[notes]
|
||||
);
|
||||
|
||||
@@ -48,7 +48,7 @@ function Notes(props: NotesProps) {
|
||||
async (query, sortOptions) => {
|
||||
if (!context || !contextNotes) return;
|
||||
const notes = notesFromContext(context);
|
||||
return await db.lookup.notes(query, sortOptions, notes);
|
||||
return await db.lookup.notesWithHighlighting(query, sortOptions, notes);
|
||||
},
|
||||
[context, contextNotes]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user