fix: ensures adding new media to upload works when existing doc does not exist
This commit is contained in:
@@ -153,7 +153,10 @@ const UploadInput: React.FC<UploadInputProps> = (props) => {
|
||||
collection,
|
||||
slug: addModalSlug,
|
||||
fieldTypes,
|
||||
setValue: onChange,
|
||||
setValue: (e) => {
|
||||
setMissingFile(false);
|
||||
onChange(e);
|
||||
},
|
||||
}}
|
||||
/>
|
||||
<SelectExistingModal
|
||||
|
||||
Reference in New Issue
Block a user