Fix table crash issue when selectedRowIndices was reset (#1542)

This commit is contained in:
Abhinav Jha 2020-11-03 22:16:44 +05:30 committed by Nikhil Nandagopal
parent 8d2ccefab2
commit 8b097775a3

View File

@ -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 (