Skip to content

Commit

Permalink
Fix useEffect dependency array in clusters.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
WCY-dt committed May 2, 2024
1 parent d7f2d18 commit 3885531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/clusters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function Clusters({ dataKey }: ClustersProps) {
setNeedReload(false);
}
});
}, [dataKey, selectedCategory, searchTerm, needReload]);
}, [dataKey, selectedCategory, searchTerm, needReload, setNeedReload]);

if (isLoading) {
return (
Expand Down

0 comments on commit 3885531

Please sign in to comment.