Web: Fixed issue with Tree link first click
This commit is contained in:
parent
5f255d7aa4
commit
1c4acb2842
@ -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));
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user