Web:Files:Article: fix double fetching rooms after change root room
This commit is contained in:
parent
986b4d6d0a
commit
62e8b7d761
@ -390,8 +390,13 @@ export default inject(
|
|||||||
uploadDataStore,
|
uploadDataStore,
|
||||||
dialogsStore,
|
dialogsStore,
|
||||||
}) => {
|
}) => {
|
||||||
const { selection, dragging, setDragging, setStartDrag, trashIsEmpty } =
|
const {
|
||||||
filesStore;
|
selection,
|
||||||
|
dragging,
|
||||||
|
setDragging,
|
||||||
|
setStartDrag,
|
||||||
|
trashIsEmpty,
|
||||||
|
} = filesStore;
|
||||||
|
|
||||||
const { startUpload } = uploadDataStore;
|
const { startUpload } = uploadDataStore;
|
||||||
|
|
||||||
|
@ -52,6 +52,7 @@ const ArticleBodyContent = (props) => {
|
|||||||
toggleArticleOpen,
|
toggleArticleOpen,
|
||||||
setIsLoading,
|
setIsLoading,
|
||||||
fetchFiles,
|
fetchFiles,
|
||||||
|
|
||||||
fetchRooms,
|
fetchRooms,
|
||||||
|
|
||||||
homepage,
|
homepage,
|
||||||
@ -72,7 +73,7 @@ const ArticleBodyContent = (props) => {
|
|||||||
? RoomSearchArea.Active
|
? RoomSearchArea.Active
|
||||||
: RoomSearchArea.Archive;
|
: RoomSearchArea.Archive;
|
||||||
|
|
||||||
fetchRooms(searchArea, null, true, false)
|
fetchRooms(searchArea, null)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
if (filesSection) {
|
if (filesSection) {
|
||||||
const filter = RoomsFilter.getDefault();
|
const filter = RoomsFilter.getDefault();
|
||||||
|
Loading…
Reference in New Issue
Block a user