Skip to content

Commit

Permalink
fix(media): fix logic for disabling button in create media folder mod…
Browse files Browse the repository at this point in the history
…al (#1712)
  • Loading branch information
dcshzj authored Nov 28, 2023
1 parent e2089d5 commit 816fe29
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ export const CreateMediaFolderModal = ({
!methods.formState.isDirty ||
_.some(methods.formState.errors) ||
(originalSelectedMedia.length === 0 &&
files.length !== 0 &&
methods.watch("selectedPages").length === 0)
}
>
Expand Down

0 comments on commit 816fe29

Please sign in to comment.