web: use notesWithHighlighting for full notes search

This commit is contained in:
Abdullah Atta
2025-05-27 12:37:50 +05:00
parent 2c45cea746
commit 81be2fad9d
2 changed files with 2 additions and 2 deletions

View File

@@ -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]
);

View File

@@ -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]
);