diff --git a/components/layout/layout.tsx b/components/layout/layout.tsx index a19a399dc2..294bd6d11d 100644 --- a/components/layout/layout.tsx +++ b/components/layout/layout.tsx @@ -45,12 +45,12 @@ class BasicLayout extends React.Component { siderHook: { addSider: (id: string) => { this.setState({ - siders: [...this.state.siders, id ], + siders: [...this.state.siders, id], }); }, removeSider: (id: string) => { this.setState({ - siders: this.state.siders.filter(currentId => currentId !== id ), + siders: this.state.siders.filter(currentId => currentId !== id), }); }, },