fix ts error, ref #4675

This commit is contained in:
afc163 2017-01-24 15:10:04 +08:00
parent 720ea3690a
commit 75128c8e22

View File

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