mirror of
https://github.com/usememos/memos.git
synced 2025-12-16 21:59:25 +08:00
chore: empty query text (#566)
This commit is contained in:
parent
2daf085ce4
commit
ff0db82dc3
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ const SearchBar = () => {
|
||||||
const handleTextQueryInput = (event: React.FormEvent<HTMLInputElement>) => {
|
const handleTextQueryInput = (event: React.FormEvent<HTMLInputElement>) => {
|
||||||
const text = event.currentTarget.value;
|
const text = event.currentTarget.value;
|
||||||
setQueryText(text);
|
setQueryText(text);
|
||||||
locationService.setTextQuery(text);
|
locationService.setTextQuery(text.length === 0 ? undefined : text);
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue