From 8b097775a3d5a78e095c3e30dd94d2487f56bcbd Mon Sep 17 00:00:00 2001 From: Abhinav Jha Date: Tue, 3 Nov 2020 22:16:44 +0530 Subject: [PATCH] Fix table crash issue when selectedRowIndices was reset (#1542) --- app/client/src/components/designSystems/appsmith/Table.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/client/src/components/designSystems/appsmith/Table.tsx b/app/client/src/components/designSystems/appsmith/Table.tsx index 51b6b6619b..6be5ba72f1 100644 --- a/app/client/src/components/designSystems/appsmith/Table.tsx +++ b/app/client/src/components/designSystems/appsmith/Table.tsx @@ -111,7 +111,7 @@ export const Table = (props: TableProps) => { } const subPage = page.slice(startIndex, endIndex); const selectedRowIndex = props.selectedRowIndex; - const selectedRowIndices = props.selectedRowIndices; + const selectedRowIndices = props.selectedRowIndices || []; const tableSizes = TABLE_SIZES[props.compactMode || CompactModeTypes.DEFAULT]; /* Subtracting 9px to handling widget padding */ return (