From 62e8b7d7619a14eefb70110cbbc7ff87457de911 Mon Sep 17 00:00:00 2001 From: TimofeyBoyko Date: Sun, 3 Jul 2022 08:11:54 +0300 Subject: [PATCH] Web:Files:Article: fix double fetching rooms after change root room --- .../Client/src/components/Article/Body/Items.js | 9 +++++++-- .../Client/src/components/Article/Body/index.js | 3 ++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/products/ASC.Files/Client/src/components/Article/Body/Items.js b/products/ASC.Files/Client/src/components/Article/Body/Items.js index 76c8027161..7fc84b51f4 100644 --- a/products/ASC.Files/Client/src/components/Article/Body/Items.js +++ b/products/ASC.Files/Client/src/components/Article/Body/Items.js @@ -390,8 +390,13 @@ export default inject( uploadDataStore, dialogsStore, }) => { - const { selection, dragging, setDragging, setStartDrag, trashIsEmpty } = - filesStore; + const { + selection, + dragging, + setDragging, + setStartDrag, + trashIsEmpty, + } = filesStore; const { startUpload } = uploadDataStore; 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 ffc45c7c56..4edf4c6dba 100644 --- a/products/ASC.Files/Client/src/components/Article/Body/index.js +++ b/products/ASC.Files/Client/src/components/Article/Body/index.js @@ -52,6 +52,7 @@ const ArticleBodyContent = (props) => { toggleArticleOpen, setIsLoading, fetchFiles, + fetchRooms, homepage, @@ -72,7 +73,7 @@ const ArticleBodyContent = (props) => { ? RoomSearchArea.Active : RoomSearchArea.Archive; - fetchRooms(searchArea, null, true, false) + fetchRooms(searchArea, null) .then(() => { if (filesSection) { const filter = RoomsFilter.getDefault();