Skip to content

Commit

Permalink
Fix table crash issue when selectedRowIndices was reset (#1542)
Browse files Browse the repository at this point in the history
  • Loading branch information
riodeuno authored and Nikhil-Nandagopal committed Nov 3, 2020
1 parent 8d2ccef commit 8b09777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/client/src/components/designSystems/appsmith/Table.tsx
Expand Up @@ -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 (
Expand Down

0 comments on commit 8b09777

Please sign in to comment.