Client: PortalSettings: fix tree node select

This commit is contained in:
Viktor Fomin 2022-11-02 14:53:43 +05:00
parent d6656b0aa9
commit 7d306d6bde

View File

@ -135,6 +135,12 @@ class ArticleBodyContent extends React.Component {
if (tReady) setIsLoadedArticleBody(true);
if (prevProps.location.pathname !== this.props.location.pathname) {
if (this.props.location.pathname.includes("payments")) {
this.setState({ selectedKeys: ["4-0"] });
}
}
if (!isArrayEqual(prevState.selectedKeys, this.state.selectedKeys)) {
const { selectedKeys } = this.state;