From 1c4acb2842fbc9faca2e0180289f23296c14e98b Mon Sep 17 00:00:00 2001 From: AlexeySafronov Date: Sat, 20 Mar 2021 11:54:21 +0300 Subject: [PATCH] Web: Fixed issue with Tree link first click --- products/ASC.Files/Client/src/components/Article/Body/index.js | 2 +- products/ASC.People/Client/src/components/Article/Body/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/products/ASC.Files/Client/src/components/Article/Body/index.js b/products/ASC.Files/Client/src/components/Article/Body/index.js index ae85b08dab..e0fe19cc99 100644 --- a/products/ASC.Files/Client/src/components/Article/Body/index.js +++ b/products/ASC.Files/Client/src/components/Article/Body/index.js @@ -59,7 +59,7 @@ class ArticleBodyContent extends React.Component { ? setDocumentTitle(selectedFolderTitle) : setDocumentTitle(); - if (history.location.pathname.indexOf("/files/filter") > 0) { + if (window.location.pathname.indexOf("/files/filter") > 0) { fetchFiles(data[0], newFilter) .catch((err) => toastr.error(err)) .finally(() => setIsLoading(false)); diff --git a/products/ASC.People/Client/src/components/Article/Body/index.js b/products/ASC.People/Client/src/components/Article/Body/index.js index 7537fa365e..625a73775e 100644 --- a/products/ASC.People/Client/src/components/Article/Body/index.js +++ b/products/ASC.People/Client/src/components/Article/Body/index.js @@ -170,7 +170,7 @@ class ArticleBodyContent extends React.Component { this.changeTitleDocument(groupId); - if (history.location.pathname.indexOf("/people/filter") > 0) { + if (window.location.pathname.indexOf("/people/filter") > 0) { selectGroup(groupId); } else { const { filter } = this.props;