mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
Add stable row id. (#2315)
Co-authored-by: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com>
This commit is contained in:
parent
9b10a8815b
commit
6622346286
@ -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,
|
||||
@ -359,6 +363,7 @@ export const ProjectFeatureToggles = ({
|
||||
sortTypes,
|
||||
disableSortRemove: true,
|
||||
autoResetSortBy: false,
|
||||
getRowId,
|
||||
},
|
||||
useFlexLayout,
|
||||
useSortBy
|
||||
|
Loading…
Reference in New Issue
Block a user