Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: empty query text (#566)

Zeng1998ff0db82dc3cb
diff --git a/web/src/components/SearchBar.tsx b/web/src/components/SearchBar.tsx
index a80b3f207..e2521878f 100644
--- a/web/src/components/SearchBar.tsx
+++ b/web/src/components/SearchBar.tsx
@@ -27,7 +27,7 @@ const SearchBar = () => {
const handleTextQueryInput = (event: React.FormEvent<HTMLInputElement>) => {
const text = event.currentTarget.value;
setQueryText(text);
- locationService.setTextQuery(text);
+ locationService.setTextQuery(text.length === 0 ? undefined : text);
};
return (