1
0
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:
Mateusz Kwasniewski 2022-11-02 12:55:20 +01:00 committed by GitHub
parent 9b10a8815b
commit 6622346286
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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