Stop displaying storage error on photo create
This commit is contained in:
parent
da9e71260d
commit
ed6a5e4908
@ -291,7 +291,7 @@ export default function PhotoForm({
|
||||
const footerForField = (key: keyof PhotoFormData) => {
|
||||
switch (key) {
|
||||
case 'url':
|
||||
return photoStorageUrls.length === 0
|
||||
return type === 'edit' && photoStorageUrls.length === 0
|
||||
? <span className="text-error">
|
||||
No storage found for photo
|
||||
</span>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user