Client: PortalSettings: fix select common node

This commit is contained in:
Viktor Fomin 2022-11-02 14:58:02 +05:00
parent 7d306d6bde
commit 0ef4129c99

View File

@ -139,6 +139,10 @@ class ArticleBodyContent extends React.Component {
if (this.props.location.pathname.includes("payments")) { if (this.props.location.pathname.includes("payments")) {
this.setState({ selectedKeys: ["4-0"] }); this.setState({ selectedKeys: ["4-0"] });
} }
if (this.props.location.pathname.includes("common")) {
this.setState({ selectedKeys: ["0-0"] });
}
} }
if (!isArrayEqual(prevState.selectedKeys, this.state.selectedKeys)) { if (!isArrayEqual(prevState.selectedKeys, this.state.selectedKeys)) {