remove non-null assertion (#22096)

This commit is contained in:
Amumu 2020-03-11 11:22:46 +08:00 committed by GitHub
parent f67e1833e9
commit 5d9d1ef31b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}>