mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
fix(app): tell the user when a search query has nothing to search (#1901)
This commit is contained in:
1 parent
bb34c73069
commit
b71ced9b2e
8 files changed
+303
-136
No files matched your search
@@ -260,9 +260,6 @@ export const ChannelHeader = observer(
|
||||
);
|
||||
const handleSearchSubmit = useCallback(() => {
|
||||
const query = latestSearchQueryRef.current;
|
||||
if (!query.trim()) {
|
||||
return;
|
||||
}
|
||||
if (onSearchSubmit) {
|
||||
onSearchSubmit(query, latestSearchSegmentsRef.current);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user