Skip to content
Snippets Groups Projects
Commit 31882ffc authored by Loïc Correnson's avatar Loïc Correnson
Browse files

[ivette] use fixed array api in multiple-selection

parent cfe7d9e4
No related branches found
No related tags found
No related merge requests found
......@@ -30,8 +30,8 @@ const SelectionTable = () => {
// Updates [[model]] with the current multiple selection.
React.useEffect(() => {
if (numblerOfSelections > 0) {
const array: SelectionId[] = multiple.allSelections.map((d, i) => ({ ...d, id: i }));
const data: SelectionId[] = multiple.allSelections.map((d, i) => ({ ...d, id: i }));
model.replaceAllDataWith(data);
} else
model.clear();
}, [numblerOfSelections, multiple, model]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment