Web: Fixed issue with Tree link first click

This commit is contained in:
Alexey Safronov 2021-03-20 11:54:21 +03:00
parent 5f255d7aa4
commit 1c4acb2842
2 changed files with 2 additions and 2 deletions

View File

@ -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));

View File

@ -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;