Skip to content

Commit

Permalink
fix: remove file upload restraint from contents modal if modules are …
Browse files Browse the repository at this point in the history
…allowed
  • Loading branch information
sabrina-bongiovanni committed Jan 13, 2025
1 parent 1ecf98f commit 266112c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ class ContentsUploadModal extends Component {
// as addable type
const showFileRestraint =
this.props.pathname.includes('modulistica') &&
!this.props.types.some((type) => type.id === 'File');
!this.props.types.some(
(type) => type.id === 'File' || type.id === 'Modulo',
);

return (
this.props.open && (
Expand Down

0 comments on commit 266112c

Please sign in to comment.