From f2d5bfdc827da6f9cc138a50161ecc58564650ac Mon Sep 17 00:00:00 2001 From: Daniil Senkiv Date: Mon, 23 Dec 2019 18:34:49 +0300 Subject: [PATCH] web.client: Settings: revert (6ab8348aadc252fa89ec0d3d56dcc2483300e9c1) --- .../pages/Settings/Layout/Article/Body/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/web/ASC.Web.Client/src/components/pages/Settings/Layout/Article/Body/index.js b/web/ASC.Web.Client/src/components/pages/Settings/Layout/Article/Body/index.js index 276d7e0988..ea0a8f20fe 100644 --- a/web/ASC.Web.Client/src/components/pages/Settings/Layout/Article/Body/index.js +++ b/web/ASC.Web.Client/src/components/pages/Settings/Layout/Article/Body/index.js @@ -109,13 +109,13 @@ class ArticleBodyContent extends React.Component { history.push(newPath); } - // shouldComponentUpdate(nextProps, nextState) { - // if (!utils.array.isArrayEqual(nextState.selectedKeys, this.state.selectedKeys)) { - // return true; - // } + shouldComponentUpdate(nextProps, nextState) { + if (!utils.array.isArrayEqual(nextState.selectedKeys, this.state.selectedKeys)) { + return true; + } - // return false; - // } + return false; + } onSelect = value => { const { selectedKeys } = this.state;