Skip to content

Commit

Permalink
fix(ui): prevent 0 to be processed as falsy value
Browse files Browse the repository at this point in the history
  • Loading branch information
hdinia committed Sep 17, 2024
1 parent f3f0dac commit 9902b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/components/common/MatrixGrid/useMatrix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9902b51

Please sign in to comment.