Skip to content

Commit

Permalink
Add dependency to useEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
JiashuHarryHuang committed Feb 19, 2024
1 parent 053e75a commit eafe925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/table/event-table/EventTableImpl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const EventTableImpl = ({
// Extra defense to refetch data if needed
useEffect(() => {
mutate();
}, [mutate, data]);
}, [mutate, data, filteredDataByTags]);

// check for errors and loading
if (error) return <div>Failed to load event table</div>;
Expand Down

0 comments on commit eafe925

Please sign in to comment.