fixed: Media Library - Can`t delete empty folder #17263

This commit is contained in:
so_hell 2023-07-12 12:31:53 +05:30
parent 670f4a65e1
commit fe2b24bcc1

View File

@ -147,7 +147,6 @@ export const EditFolderDialog = ({ onClose, folder, location, parentFolderId })
}
return (
<>
<ModalLayout onClose={() => onClose()} labelledBy="title">
<Formik
validationSchema={folderSchema}
@ -288,11 +287,10 @@ export const EditFolderDialog = ({ onClose, folder, location, parentFolderId })
</Form>
)}
</Formik>
</ModalLayout>
{showConfirmDialog && (
<RemoveFolderDialog onClose={() => setShowConfirmDialog(false)} onConfirm={handleDelete} />
)}
</>
</ModalLayout>
);
};