diff --git a/pc4mobx/organization/components/office/components/leftTree.js b/pc4mobx/organization/components/office/components/leftTree.js index bb12530..e8d7f80 100644 --- a/pc4mobx/organization/components/office/components/leftTree.js +++ b/pc4mobx/organization/components/office/components/leftTree.js @@ -253,9 +253,10 @@ class LeftTree extends Component { }); }; - onExpand = expandedKeys => { + onExpand = keys => { + const { expandedKeys } = this.state; this.setState({ - expandedKeys + expandedKeys: expandedKeys.includes("-1") ? [] : keys }); };