From fc88005c9c00dcecabc469995c968d24d41a9430 Mon Sep 17 00:00:00 2001 From: chenlong Date: Wed, 6 Mar 2019 13:58:04 +0800 Subject: [PATCH] Add fault-tolerant processing for rowSelection.getCheckboxProps --- components/table/Table.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/table/Table.tsx b/components/table/Table.tsx index 4cb60c1420..8570dacd60 100755 --- a/components/table/Table.tsx +++ b/components/table/Table.tsx @@ -153,7 +153,7 @@ export default class Table extends React.Component, 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]; };