2
0

fix(results): crash when accessor contains a dot

This commit is contained in:
Baptiste Arnaud
2022-08-11 09:11:06 +02:00
parent 823793aab4
commit 361092ffa5

View File

@ -120,9 +120,14 @@ export const ResultsTable = ({
</HStack> </HStack>
), ),
cell: (info) => { cell: (info) => {
const value = info.getValue() as CellValueType | undefined try {
if (!value) return const value = info?.getValue() as CellValueType | undefined
return value.element || value.plainText || '' if (!value) return
return value.element || value.plainText || ''
} catch (err) {
console.error(err)
return
}
}, },
})), })),
{ {