From 935e4c52a4e1cf239b7cd788ef9a9457f3760b33 Mon Sep 17 00:00:00 2001 From: Eunjae Lee Date: Tue, 4 Feb 2025 17:46:01 +0100 Subject: [PATCH] fix: nullish check on insights routing (#19097) --- .../features/insights/components/RoutingFormResponsesTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/features/insights/components/RoutingFormResponsesTable.tsx b/packages/features/insights/components/RoutingFormResponsesTable.tsx index 1927247083..a68ffad909 100644 --- a/packages/features/insights/components/RoutingFormResponsesTable.tsx +++ b/packages/features/insights/components/RoutingFormResponsesTable.tsx @@ -418,7 +418,7 @@ export function RoutingFormResponsesTable() { filter: { type: filterType }, }, filterFn: (row, id, filterValue) => { - const cellValue = row.original.response[id].value; + const cellValue = row.original.response[id]?.value; return dataTableFilter(cellValue, filterValue); }, });