Unverified Commit ff0db82d authored by Zeng1998's avatar Zeng1998 Committed by GitHub

chore: empty query text (#566)

parent 2daf085c
......@@ -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 (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment