fix getCheckboxProps type

This commit is contained in:
vchikalkin 2023-05-07 14:41:35 +03:00
parent a01f99315b
commit 0cab711a94

View File

@ -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);