mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 03:17:11 +00:00
MediaLibraryDialog: Fix displayed location after changes
This commit is contained in:
parent
d613d6aa83
commit
873fcf879c
@ -20,7 +20,12 @@ export const MediaLibraryDialog = ({ onClose, onSelectAssets, allowedTypes }) =>
|
||||
return (
|
||||
<AssetDialog
|
||||
allowedTypes={allowedTypes}
|
||||
onClose={onClose}
|
||||
folderId={folderId}
|
||||
onClose={() => {
|
||||
setStep(undefined);
|
||||
setFolderId(null);
|
||||
onClose();
|
||||
}}
|
||||
onValidate={onSelectAssets}
|
||||
onAddAsset={() => setStep(STEPS.AssetUpload)}
|
||||
onAddFolder={() => setStep(STEPS.FolderCreate)}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user