Skip to content

Commit

Permalink
Fixed Bug 53123 - Client.Files.Added a filter at the stage of creatin…
Browse files Browse the repository at this point in the history
…g a file or folder.
  • Loading branch information
TatianaLopaeva committed Nov 23, 2021
1 parent a50d35e commit 2678c8c
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { withLayoutSize } from "@appserver/common/utils";
import { isMobileOnly, isMobile } from "react-device-detect";
import { inject, observer } from "mobx-react";
import withLoader from "../../../../HOCs/withLoader";

import { FileAction } from "@appserver/common/constants";
const getFilterType = (filterValues) => {
const filterType = result(
find(filterValues, (value) => {
Expand Down Expand Up @@ -373,6 +373,8 @@ export default inject(
createThumbnails,
} = filesStore;

const { type: fileActionType } = filesStore.fileActionStore;

const { user } = auth.userStore;
const { customNames, culture, personal } = auth.settingsStore;
const { isFavoritesFolder, isRecentFolder } = treeFoldersStore;
Expand All @@ -383,7 +385,8 @@ export default inject(
!!folders.length ||
search ||
filterType ||
authorType) &&
authorType ||
fileActionType === FileAction.Create) &&
!(treeFoldersStore.isPrivacyFolder && isMobile);

return {
Expand Down

0 comments on commit 2678c8c

Please sign in to comment.