Browse Source

remove non-null assertion (#22096)

pull/22104/head
Amumu 5 years ago
committed by GitHub
parent
commit
5d9d1ef31b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/table/hooks/useFilter/FilterDropdown.tsx

2
components/table/hooks/useFilter/FilterDropdown.tsx

@ -187,7 +187,7 @@ function FilterDropdown<RecordType>(props: FilterDropdownProps<RecordType>) {
openKeys={openKeys}
onOpenChange={onOpenChange}
>
{renderFilterItems(column.filters!, prefixCls, getFilteredKeysSync(), filterMultiple)}
{renderFilterItems(column.filters || [], prefixCls, getFilteredKeysSync(), filterMultiple)}
</Menu>
<div className={`${prefixCls}-dropdown-btns`}>
<a className={`${prefixCls}-dropdown-link confirm`} onClick={onConfirm}>

Loading…
Cancel
Save