Skip to content

Commit 5a1e0ca

Browse files
committed
fix: check if record exists
1 parent 964bdaf commit 5a1e0ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/Resources/ContentResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ protected static function getFileUploadField()
10591059
return $state;
10601060
}
10611061

1062-
if (! $type->og_image_fields || empty($type->og_image_fields)) {
1062+
if (! $type->og_image_fields || empty($type->og_image_fields) || ! $record) {
10631063
return [];
10641064
}
10651065

0 commit comments

Comments
 (0)