diff --git a/products/ASC.Files/Client/src/components/panels/NewFilesPanel/index.js b/products/ASC.Files/Client/src/components/panels/NewFilesPanel/index.js index 91aa3de65e..a58950c3d4 100644 --- a/products/ASC.Files/Client/src/components/panels/NewFilesPanel/index.js +++ b/products/ASC.Files/Client/src/components/panels/NewFilesPanel/index.js @@ -109,7 +109,6 @@ class NewFilesPanelComponent extends React.Component { api.files .markAsRead(folderIds, fileIds) .then(() => { - this.props.setUpdateTree(true); this.setNewFilesCount(folderId, markAsReadFiles); this.props.setNewRowItems(itemsIds); }) @@ -162,7 +161,7 @@ class NewFilesPanelComponent extends React.Component { }; setNewFilesCount = (folderPath, markAsReadAll, item) => { - const { treeFolders, setTreeFolders, folders, files } = this.props; + const { treeFolders, setTreeFolders, folders, files, setUpdateTree } = this.props; const data = treeFolders; let dataItem; @@ -210,6 +209,7 @@ class NewFilesPanelComponent extends React.Component { } } + setUpdateTree(true); setTreeFolders(data); }; diff --git a/products/ASC.People/Client/src/components/pages/Home/Section/Body/index.js b/products/ASC.People/Client/src/components/pages/Home/Section/Body/index.js index 31cae6d601..e3d1c1d32b 100644 --- a/products/ASC.People/Client/src/components/pages/Home/Section/Body/index.js +++ b/products/ASC.People/Client/src/components/pages/Home/Section/Body/index.js @@ -64,6 +64,9 @@ class SectionBodyContent extends React.PureComponent { if (!isLoaded) return; if(peopleList.length <= 0) setIsLoaded(); + + setIsLoaded(false) + fetchPeople(filter) .then(() => isLoaded && setIsLoaded(true)) .catch((error) => {