From 31882ffcc00d620e1158c3147f9ea275b47a2060 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Loi=CC=88c=20Correnson?= <loic.correnson@cea.fr>
Date: Thu, 9 Jul 2020 11:05:33 +0200
Subject: [PATCH] [ivette] use fixed array api in multiple-selection

---
 ivette/src/renderer/MultipleSelection.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ivette/src/renderer/MultipleSelection.tsx b/ivette/src/renderer/MultipleSelection.tsx
index 3c887147c51..ab746c37183 100644
--- a/ivette/src/renderer/MultipleSelection.tsx
+++ b/ivette/src/renderer/MultipleSelection.tsx
@@ -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]);
-- 
GitLab