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