fix: media folder
This commit is contained in:
parent
e191e6d691
commit
ac5659eec4
@ -41,13 +41,11 @@ function hasCustomFolder(
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!isMediaField(folderKey, field)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (isMediaField(folderKey, field)) {
|
||||
if (field[folderKey]) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if ('files' in collection) {
|
||||
const file = getFileField(collection.files, slug);
|
||||
|
Loading…
x
Reference in New Issue
Block a user