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
fix: search not working
thecodrred1cdc906748
diff --git a/apps/web/src/stores/search-store.js b/apps/web/src/stores/search-store.jsindex 8756a2e29..7d471ebfb 100644--- a/apps/web/src/stores/search-store.js+++ b/apps/web/src/stores/search-store.js@@ -8,19 +8,18 @@ class SearchStore extends BaseStore {item = undefined;results = [];- setSearchContext = context => {- this.set(state => {+ setSearchContext = (context) => {+ this.set((state) => {state.type = context.type;state.items = context.items;state.item = context.item;});};- search = async query => {- const { items, type } = this;+ search = async (query) => {+ const { items, type } = this.get();const results = await db.lookup[type](items, query);- console.log(query, results);- this.set(state => (state.results = results));+ this.set((state) => (state.results = results));};}