From 52838a3493c18bb4c6c06ffdfb4ba820d4b7a4b9 Mon Sep 17 00:00:00 2001 From: Sorina-Andreea Ocheana Date: Fri, 28 Jun 2024 10:13:21 +0300 Subject: [PATCH 1/2] Changed validation to accept the number zero --- .../parts/cell/modus-table-cell-main/modus-table-cell-main.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stencil-workspace/src/components/modus-table/parts/cell/modus-table-cell-main/modus-table-cell-main.tsx b/stencil-workspace/src/components/modus-table/parts/cell/modus-table-cell-main/modus-table-cell-main.tsx index 403945f52..5f7bcd18e 100644 --- a/stencil-workspace/src/components/modus-table/parts/cell/modus-table-cell-main/modus-table-cell-main.tsx +++ b/stencil-workspace/src/components/modus-table/parts/cell/modus-table-cell-main/modus-table-cell-main.tsx @@ -177,7 +177,7 @@ export class ModusTableCellMain { const { row, getValue } = this.cell; const cellValue = getValue(); - if (!cellValue) return null; + if (cellValue !== null && cellValue !== undefined) return null; const { cellLinkClick, wrapText } = this.context; const cellDataType = cellValue['_type'] ?? this.cell.column.columnDef[COLUMN_DEF_DATATYPE_KEY]; From 9efeacaf5513910f4b9375e64f91a925f6ed47e2 Mon Sep 17 00:00:00 2001 From: Sorina-Andreea Ocheana Date: Fri, 28 Jun 2024 10:37:46 +0300 Subject: [PATCH 2/2] Updated validation --- .../parts/cell/modus-table-cell-main/modus-table-cell-main.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stencil-workspace/src/components/modus-table/parts/cell/modus-table-cell-main/modus-table-cell-main.tsx b/stencil-workspace/src/components/modus-table/parts/cell/modus-table-cell-main/modus-table-cell-main.tsx index 5f7bcd18e..722d54ade 100644 --- a/stencil-workspace/src/components/modus-table/parts/cell/modus-table-cell-main/modus-table-cell-main.tsx +++ b/stencil-workspace/src/components/modus-table/parts/cell/modus-table-cell-main/modus-table-cell-main.tsx @@ -177,7 +177,7 @@ export class ModusTableCellMain { const { row, getValue } = this.cell; const cellValue = getValue(); - if (cellValue !== null && cellValue !== undefined) return null; + if (cellValue === null || cellValue === undefined) return null; const { cellLinkClick, wrapText } = this.context; const cellDataType = cellValue['_type'] ?? this.cell.column.columnDef[COLUMN_DEF_DATATYPE_KEY];