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: disable nothing found popup in search (fixes streetwriters/notesnook#500)
thecodrrb82a22fc2a9c
diff --git a/apps/web/src/views/search.js b/apps/web/src/views/search.jsindex 29bd254a8..84b6e5055 100644--- a/apps/web/src/views/search.js+++ b/apps/web/src/views/search.js@@ -59,9 +59,9 @@ function Search({ type }) {const results = await db.lookup[lookupType](items, query);setResults(results);setSearchState({ isSearching: false, totalItems: 0 });- if (!results.length) {- showToast("error", `Nothing found for "${query}".`);- }+ // if (!results.length) {+ // showToast("error", `Nothing found for "${query}".`);+ // }},[context, type]);@@ -136,7 +136,15 @@ function Search({ type }) {context={context}type={type}items={results}- placeholder={SearchPlaceholder}+ placeholder={() => (+ <SearchPlaceholder+ text={+ cachedQuery.current+ ? `Nothing found for "${cachedQuery.current}"`+ : undefined+ }+ />+ )}/>)}</>