mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Fix type issues (#4176)
This commit is contained in:
@@ -107,7 +107,7 @@ export const ListFilter: React.FC<IListFilterProps> = ({
|
||||
// clear search input when filter is cleared
|
||||
useEffect(() => {
|
||||
if (!filter.searchTerm) {
|
||||
queryRef.current.value = "";
|
||||
if (queryRef.current) queryRef.current.value = "";
|
||||
setQueryClearShowing(false);
|
||||
}
|
||||
}, [filter.searchTerm, queryRef]);
|
||||
@@ -139,7 +139,7 @@ export const ListFilter: React.FC<IListFilterProps> = ({
|
||||
}
|
||||
|
||||
function onClearQuery() {
|
||||
queryRef.current.value = "";
|
||||
if (queryRef.current) queryRef.current.value = "";
|
||||
searchQueryUpdated("");
|
||||
setQueryFocus();
|
||||
setQueryClearShowing(false);
|
||||
|
||||
Reference in New Issue
Block a user