Skip to content

Commit

Permalink
remove non-null assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyo837 committed Mar 11, 2020
1 parent 33e726f commit 1b56414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/table/hooks/useFilter/FilterDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}>
Expand Down

0 comments on commit 1b56414

Please sign in to comment.