From 9902b515e026645a465e2402a56a2416783dee9f Mon Sep 17 00:00:00 2001 From: hatim dinia Date: Tue, 17 Sep 2024 13:29:51 +0200 Subject: [PATCH] fix(ui): prevent 0 to be processed as falsy value --- webapp/src/components/common/MatrixGrid/useMatrix.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/components/common/MatrixGrid/useMatrix.ts b/webapp/src/components/common/MatrixGrid/useMatrix.ts index 364feb8b81..2581f38d4b 100644 --- a/webapp/src/components/common/MatrixGrid/useMatrix.ts +++ b/webapp/src/components/common/MatrixGrid/useMatrix.ts @@ -191,7 +191,7 @@ export function useMatrix( const newUpdates: MatrixUpdateDTO[] = updates .map(({ coordinates: [row, col], value }) => { - if (value.kind === GridCellKind.Number && value.data) { + if (value.kind === GridCellKind.Number && value.data !== undefined) { updatedData[col][row] = value.data; return {