From 75128c8e22f6fd923ad350eef54d5eba73b3d758 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 24 Jan 2017 15:10:04 +0800 Subject: [PATCH] fix ts error, ref #4675 --- components/table/filterDropdown.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/table/filterDropdown.tsx b/components/table/filterDropdown.tsx index 5e40477326..4e5c556d71 100755 --- a/components/table/filterDropdown.tsx +++ b/components/table/filterDropdown.tsx @@ -42,10 +42,10 @@ export default class FilterMenu extends React.Component { 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; }