mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 05:29:37 +08:00
fix ts error, ref #4675
This commit is contained in:
parent
720ea3690a
commit
75128c8e22
@ -42,10 +42,10 @@ export default class FilterMenu extends React.Component<FilterMenuProps, any> {
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
const { column } = nextProps;
|
||||
let newState: {
|
||||
selectedKeys?: string[];
|
||||
visible?: boolean;
|
||||
} = {};
|
||||
const newState = {} as {
|
||||
selectedKeys: string[];
|
||||
visible: boolean;
|
||||
};
|
||||
if ('selectedKeys' in nextProps) {
|
||||
newState.selectedKeys = nextProps.selectedKeys;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user