[Watcher] Fix search bug that crashes the app (#162687)

This commit is contained in:
Ignacio Rivas 2023-08-01 09:04:07 +03:00 committed by GitHub
parent e9c0192493
commit 851f40c9fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,6 @@ export const WatchListPage = () => {
pageIndex: 0,
pageSize: PAGINATION.initialPageSize,
});
const [query, setQuery] = useState('');
useEffect(() => {
setBreadcrumbs([listBreadcrumb]);
@ -447,14 +446,7 @@ export const WatchListPage = () => {
: '',
};
const handleOnChange = (search: { queryText: string }) => {
setQuery(search.queryText);
return true;
};
const searchConfig = {
query,
onChange: handleOnChange,
box: {
incremental: true,
},