From 361092ffa59b330574358439e844b09b70d6cbf0 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Thu, 11 Aug 2022 09:11:06 +0200 Subject: [PATCH] fix(results): crash when accessor contains a dot --- .../components/results/ResultsTable/ResultsTable.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/builder/components/results/ResultsTable/ResultsTable.tsx b/apps/builder/components/results/ResultsTable/ResultsTable.tsx index d55544eea..6a54d21d5 100644 --- a/apps/builder/components/results/ResultsTable/ResultsTable.tsx +++ b/apps/builder/components/results/ResultsTable/ResultsTable.tsx @@ -120,9 +120,14 @@ export const ResultsTable = ({ ), cell: (info) => { - const value = info.getValue() as CellValueType | undefined - if (!value) return - return value.element || value.plainText || '' + try { + const value = info?.getValue() as CellValueType | undefined + if (!value) return + return value.element || value.plainText || '' + } catch (err) { + console.error(err) + return + } }, })), {