mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-16 17:46:18 +08:00
fix: lint warning
This commit is contained in:
@@ -25,7 +25,7 @@ export const Results = (props: {
|
||||
setResults(search(query));
|
||||
setLoading(false);
|
||||
//Save the Map<BlockId, PageId> obtained from the search as state
|
||||
}, [query, search]);
|
||||
}, [query, search, setLoading]);
|
||||
const pageIds = [...results.values()];
|
||||
|
||||
const resultsPageMeta = pageList.filter(
|
||||
@@ -35,7 +35,7 @@ export const Results = (props: {
|
||||
useEffect(() => {
|
||||
setShowCreatePage(resultsPageMeta.length ? false : true);
|
||||
//Determine whether to display the ‘+ New page’
|
||||
}, [resultsPageMeta]);
|
||||
}, [resultsPageMeta, setShowCreatePage]);
|
||||
|
||||
return loading ? null : (
|
||||
<Command.List>
|
||||
|
||||
Reference in New Issue
Block a user