diff --git a/packages/client/src/pages/Home/Section/Header/index.js b/packages/client/src/pages/Home/Section/Header/index.js index 9d66aeddb3..4f20e8dbed 100644 --- a/packages/client/src/pages/Home/Section/Header/index.js +++ b/packages/client/src/pages/Home/Section/Header/index.js @@ -21,7 +21,6 @@ import { Events } from "@docspace/common/constants"; import config from "PACKAGE_FILE"; import { combineUrl } from "@docspace/common/utils"; import RoomsFilter from "@docspace/common/api/rooms/filter"; -import { getCategoryUrl } from "SRC_DIR/helpers/utils"; import { getMainButtonItems } from "SRC_DIR/helpers/plugins"; const StyledContainer = styled.div` @@ -550,12 +549,9 @@ class SectionHeaderContent extends React.Component { setIsLoading, fetchRooms, - history, setAlreadyFetchingRooms, - categoryType, - rootFolderType, } = this.props; @@ -569,21 +565,9 @@ class SectionHeaderContent extends React.Component { filter.searchArea = RoomSearchArea.Archive; } - fetchRooms(null, filter) - .then(() => { - const filterParamsStr = filter.toUrlParams(); - - const url = getCategoryUrl(categoryType, filter.folder); - - const pathname = `${url}?${filterParamsStr}`; - - history.push( - combineUrl(AppServerConfig.proxyURL, config.homepage, pathname) - ); - }) - .finally(() => { - setIsLoading(false); - }); + fetchRooms(null, filter).finally(() => { + setIsLoading(false); + }); }; render() { @@ -714,7 +698,6 @@ export default inject( roomsForRestore, roomsForDelete, - categoryType, isEmptyPage, } = filesStore; @@ -837,8 +820,6 @@ export default inject( setAlreadyFetchingRooms, - categoryType, - enablePlugins, setRestoreAllPanelVisible,