fixes: Boolean data is not visible in the table widget (#5245)

This commit is contained in:
Arpit 2023-01-09 14:15:57 +05:30 committed by GitHub
parent 09f3dec12f
commit 76e795d22a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,7 +80,6 @@ export default function generateColumnsData({
customResolvables[id] = { ...variablesExposedForPreview[id], rowData }; customResolvables[id] = { ...variablesExposedForPreview[id], rowData };
exposeToCodeHinter((prevState) => ({ ...prevState, ...customResolvables })); exposeToCodeHinter((prevState) => ({ ...prevState, ...customResolvables }));
} }
switch (columnType) { switch (columnType) {
case 'string': case 'string':
case undefined: case undefined:
@ -151,7 +150,7 @@ export default function generateColumnsData({
</div> </div>
); );
} }
return <span style={cellStyles}>{cellValue}</span>; return <span style={cellStyles}>{String(cellValue)}</span>;
} }
case 'number': { case 'number': {
const textColor = resolveReferences(column.textColor, currentState, '', { cellValue, rowData }); const textColor = resolveReferences(column.textColor, currentState, '', { cellValue, rowData });