@@ -670,7 +670,11 @@ export const FileManagerModal = memo(
670670 onItemEvent = { handleItemCallback }
671671 withBorderHighlight = { false }
672672 featureType = { FeatureType . File }
673- canSelectFolders = { canAttachFolders || canAttachFiles }
673+ canSelectFolders = {
674+ canAttachFolders ||
675+ canAttachFiles ||
676+ forceShowSelectCheckBox
677+ }
674678 showTooltip = { showTooltip }
675679 onSelectFolder = { handleSelectFolder }
676680 onShowError = { setErrorMessage }
@@ -724,7 +728,11 @@ export const FileManagerModal = memo(
724728 onItemEvent = { handleItemCallback }
725729 withBorderHighlight = { false }
726730 featureType = { FeatureType . File }
727- canSelectFolders = { canAttachFolders || canAttachFiles }
731+ canSelectFolders = {
732+ canAttachFolders ||
733+ canAttachFiles ||
734+ forceShowSelectCheckBox
735+ }
728736 showTooltip = { showTooltip }
729737 onSelectFolder = { handleSelectFolder }
730738 onUnshareFolder = { handleDiscardSharedWithMeFolder }
@@ -757,7 +765,11 @@ export const FileManagerModal = memo(
757765 openedFoldersIds = { openedFoldersIds }
758766 onItemEvent = { handleItemCallback }
759767 onClickFolder = { handleFolderClick }
760- canAttachFolders = { canAttachFolders }
768+ canAttachFolders = {
769+ canAttachFolders ||
770+ canAttachFiles ||
771+ ! ! forceShowSelectCheckBox
772+ }
761773 onToggleFolder = { handleSelectFolder }
762774 />
763775
@@ -795,7 +807,11 @@ export const FileManagerModal = memo(
795807 onItemEvent = { handleItemCallback }
796808 withBorderHighlight = { false }
797809 featureType = { FeatureType . File }
798- canSelectFolders = { canAttachFolders || canAttachFiles }
810+ canSelectFolders = {
811+ canAttachFolders ||
812+ canAttachFiles ||
813+ forceShowSelectCheckBox
814+ }
799815 showTooltip = { showTooltip }
800816 onSelectFolder = { handleSelectFolder }
801817 onShowError = { setErrorMessage }
0 commit comments