Skip to content

Commit 562b3ff

Browse files
fix: wrap strings in double quotes so strings with commas can render in Table / SimpleTable (#4700)
1 parent 8d26032 commit 562b3ff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/timeMachine/utils/rawFluxDataTable.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ export const parseFromFluxResults = (
7272
) {
7373
columnData = new Date(columnData).toISOString()
7474
}
75+
if (typeof columnData === 'string') {
76+
columnData = `"${columnData}"`
77+
}
7578
if (column === 'result') {
7679
// setting the column data for result as an empty string since the default
7780
// value given is set in the default headers:

0 commit comments

Comments
 (0)