From 816fe298662d8aaa9408ea5d5f38fb7a5576affc Mon Sep 17 00:00:00 2001 From: Hsu Zhong Jun <27919917+dcshzj@users.noreply.github.com> Date: Tue, 28 Nov 2023 15:18:24 +0800 Subject: [PATCH] fix(media): fix logic for disabling button in create media folder modal (#1712) --- src/components/CreateMediaFolderModal/CreateMediaFolderModal.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/CreateMediaFolderModal/CreateMediaFolderModal.tsx b/src/components/CreateMediaFolderModal/CreateMediaFolderModal.tsx index c1f9ac527..085b2350b 100644 --- a/src/components/CreateMediaFolderModal/CreateMediaFolderModal.tsx +++ b/src/components/CreateMediaFolderModal/CreateMediaFolderModal.tsx @@ -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) } >