Browse Source

Add fault-tolerant processing for rowSelection.getCheckboxProps

pull/15224/head
chenlong 6 years ago
parent
commit
fc88005c9c
  1. 2
      components/table/Table.tsx

2
components/table/Table.tsx

@ -153,7 +153,7 @@ export default class Table<T> extends React.Component<TableProps<T>, TableState<
const key = this.getRecordKey(item, index);
// Cache checkboxProps
if (!this.CheckboxPropsCache[key]) {
this.CheckboxPropsCache[key] = rowSelection.getCheckboxProps(item);
this.CheckboxPropsCache[key] = rowSelection.getCheckboxProps(item) || {};
}
return this.CheckboxPropsCache[key];
};

Loading…
Cancel
Save