Skip to content

Commit

Permalink
Add stable row id. (#2315)
Browse files Browse the repository at this point in the history
Co-authored-by: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com>
  • Loading branch information
kwasniew and Tymek committed Nov 2, 2022
1 parent 9b10a88 commit 6622346
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -344,6 +344,10 @@ export const ProjectFeatureToggles = ({
[environments] // eslint-disable-line react-hooks/exhaustive-deps
);

const getRowId = useCallback((row: any) => {
return row.name;
}, []);

const {
allColumns,
headerGroups,
Expand All @@ -359,6 +363,7 @@ export const ProjectFeatureToggles = ({
sortTypes,
disableSortRemove: true,
autoResetSortBy: false,
getRowId,
},
useFlexLayout,
useSortBy
Expand Down

0 comments on commit 6622346

Please sign in to comment.