Skip to content

Commit

Permalink
fix: re-initialize groups after rows change #1687
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-mihok committed Dec 5, 2022
1 parent aefd8cf commit 6ccb45e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ui/src/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,12 @@ export const
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])
React.useEffect(() => setFilteredItems(items), [items])

React.useEffect(() => {
setFilteredItems(items)
if (groups) initGroups()
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [items])

React.useEffect(() => {
if (m.groups) {
Expand Down

0 comments on commit 6ccb45e

Please sign in to comment.