diff --git a/src/components/CellViews/StringCell.js b/src/components/CellViews/StringCell.js index 57bf479e..49b72b26 100644 --- a/src/components/CellViews/StringCell.js +++ b/src/components/CellViews/StringCell.js @@ -4,7 +4,8 @@ const valueToString = (value) => { try { return JSON.stringify(value); } catch { - return value.toString(); + /* if undefined or null we'll treat it as empty string, otherwise toString(), this will allow 0 and false to render properly */ + return (value ?? "").toString(); } }; @@ -18,7 +19,7 @@ export const StringCell = ({ value }) => { lineHeight: "16px", }} > - {value ? valueToString(value) : ""} + {valueToString(value)} ); };