A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: fix search not working in notebook
Abdullah Attaa5db1797e3f6
diff --git a/apps/web/src/hooks/use-search.ts b/apps/web/src/hooks/use-search.tsindex 812e7e367..eda1eb7e3 100644--- a/apps/web/src/hooks/use-search.ts+++ b/apps/web/src/hooks/use-search.ts@@ -21,7 +21,7 @@ import { useStore as useSearchStore } from "../stores/search-store";import { VirtualizedGrouping } from "@notesnook/core";export function useSearch<T>(- type: "notes" | "notebooks" | "reminders" | "trash" | "tags",+ type: "notes" | "notebooks" | "notebook" | "reminders" | "trash" | "tags",lookup: (query: string) => Promise<VirtualizedGrouping<T>> | undefined,deps: DependencyList = []) {diff --git a/apps/web/src/views/notes.tsx b/apps/web/src/views/notes.tsxindex 6669746fc..c6f9bcbea 100644--- a/apps/web/src/views/notes.tsx+++ b/apps/web/src/views/notes.tsx@@ -38,7 +38,7 @@ function Notes(props: NotesProps) {const type = context?.type === "favorite" ? "favorites" : "notes";const isCompact = useNotesStore((store) => store.viewMode === "compact");const filteredItems = useSearch(- "notes",+ context?.type === "notebook" ? "notebook" : "notes",(query) => {if (!context || !contextNotes) return;const notes = notesFromContext(context);