Skip to content

Commit

Permalink
fix: useEffect hook missing dependencies in table.js
Browse files Browse the repository at this point in the history
  • Loading branch information
johnflank committed Sep 2, 2021
1 parent 01e7cef commit b270e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Canary/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function TableGroupRow({ title, items, onClick, showIcon, ...rest }) {

useEffect(() => {
setAggregated(aggregate(title, items));
}, [items, items.length]);
}, [items, title]);

return (
<>
Expand Down

0 comments on commit b270e95

Please sign in to comment.