From bae3f3831a70a8ea93be24807c4bdd38102579de Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20B=C3=BChler?= <david.buhler@cea.fr>
Date: Tue, 8 Aug 2023 18:30:53 +0200
Subject: [PATCH] [ivette] Fixes table: columns shows elements equal to false.

---
 ivette/src/dome/renderer/table/views.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ivette/src/dome/renderer/table/views.tsx b/ivette/src/dome/renderer/table/views.tsx
index 6a041882b68..1db0014394c 100644
--- a/ivette/src/dome/renderer/table/views.tsx
+++ b/ivette/src/dome/renderer/table/views.tsx
@@ -268,7 +268,8 @@ function makeDataRenderer(
   return function TableCell(props: TableCellProps) {
     const { cellData } = props;
     try {
-      const contents = cellData ? render(cellData) : null;
+      const undef = cellData === null || cellData === undefined;
+      const contents =  undef ? null : render(cellData);
       if (onContextMenu) {
         const callback = (evt: React.MouseEvent): void => {
           evt.stopPropagation();
-- 
GitLab