mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-19 01:17:18 +02: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
|
[environments] // eslint-disable-line react-hooks/exhaustive-deps
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const getRowId = useCallback((row: any) => {
|
||||||
|
return row.name;
|
||||||
|
}, []);
|
||||||
|
|
||||||
const {
|
const {
|
||||||
allColumns,
|
allColumns,
|
||||||
headerGroups,
|
headerGroups,
|
||||||
@ -359,6 +363,7 @@ export const ProjectFeatureToggles = ({
|
|||||||
sortTypes,
|
sortTypes,
|
||||||
disableSortRemove: true,
|
disableSortRemove: true,
|
||||||
autoResetSortBy: false,
|
autoResetSortBy: false,
|
||||||
|
getRowId,
|
||||||
},
|
},
|
||||||
useFlexLayout,
|
useFlexLayout,
|
||||||
useSortBy
|
useSortBy
|
||||||
|
Loading…
Reference in New Issue
Block a user