fix getCheckboxProps type
This commit is contained in:
parent
a01f99315b
commit
0cab711a94
@ -18,7 +18,7 @@ export const PolicyTable = observer(
|
||||
x: true,
|
||||
}}
|
||||
rowSelection={{
|
||||
getCheckboxProps: (record) => ({ disabled: !record.sum || record.status }),
|
||||
getCheckboxProps: (record) => ({ disabled: !record.sum || record.status !== null }),
|
||||
hideSelectAll: true,
|
||||
onSelect: (record) => {
|
||||
if (record.sum > 0) setSelectedKey(record.key);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user