Skip to content

Commit 6d8faff

Browse files
committed
fix: Show boolean as string in logtable
1 parent c248f46 commit 6d8faff

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/LogTable.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,6 @@ function LogTable(props) {
285285
return column.solutionTypes.indexOf(props.logData.solutionType) !== -1;
286286
}
287287
);
288-
289288
// Add dynamic columns
290289
_.map(props.extraColumns, (dotPath) => {
291290
const elems = dotPath.split(".");
@@ -294,6 +293,11 @@ function LogTable(props) {
294293
accessor: dotPath === ".error" ? "error" : dotPath,
295294
width: columnRegularWidth,
296295
className: "logtable-cell",
296+
Cell: ({ cell }) => {
297+
const value = cell.value;
298+
if (value === undefined || value === null) return null;
299+
return typeof value === "boolean" ? String(value) : value;
300+
},
297301
});
298302
});
299303
const headers = [

0 commit comments

Comments
 (0)