mirror of
https://github.com/strapi/strapi.git
synced 2025-08-02 13:58:18 +00:00
fixed: Media Library - Can`t delete empty folder #17263
This commit is contained in:
parent
670f4a65e1
commit
fe2b24bcc1
@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user