fix duplicate name/key render warning
This commit is contained in:
1 parent
e29a777a9f
commit
1107779a63
2 files changed
+2
-1
No files matched your search
@@ -164,6 +164,7 @@ function StudyListContainer({ history, data: studies }) {
|
||||
};
|
||||
const tableDataSource = studies
|
||||
// TOOD: Move sort to DataSourceWrapper?
|
||||
// TODO: MOTIVATION, this is triggered on every render, even if list/sort does not change
|
||||
.sort((s1, s2) => {
|
||||
const noSortApplied = sortBy === '' || !sortBy;
|
||||
const sortModifier = sortDirection === 'descending' ? 1 : -1;
|
||||
|
||||
Reference in new issue
Block a user