Web:Files:Article: fix double fetching rooms after change root room

This commit is contained in:
TimofeyBoyko 2022-07-03 08:11:54 +03:00
parent 986b4d6d0a
commit 62e8b7d761
2 changed files with 9 additions and 3 deletions

View File

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

View File

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