fix(results): crash when variable is object
This commit is contained in:
@@ -151,9 +151,6 @@ export const ResultsTable = ({
|
||||
[resultHeader]
|
||||
)
|
||||
|
||||
// TO-DO: remove. Meant to help me investigate why table crash in some specific circumstances.
|
||||
console.log(data)
|
||||
|
||||
const instance = useReactTable({
|
||||
data,
|
||||
columns,
|
||||
|
||||
@@ -185,7 +185,7 @@ export const convertResultsToTableData = (
|
||||
if (isDefined(o[key])) return o
|
||||
return {
|
||||
...o,
|
||||
[key]: { plainText: variable.value },
|
||||
[key]: { plainText: variable.value?.toString() },
|
||||
}
|
||||
}, {}),
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user