8.23.1
@comet/cms-admin@8.23.1
Patch Changes
-
662eb98: Fix
FileFieldbreaking image block selectionThe
DamFileFieldFilefragment lost the image dimensions (width,height,cropArea) needed byDamImageBlock/PixelImageBlock. Selecting an image inside an image block crashed because those fields were missing. Restored them on the fragment.Composing the fragment into a parent collection (e.g. a many-to-many to
DamFile) exposed a Mikro-ORM gotcha:Collection.loadItems()does not honoreager: true, so each loadedDamFilehad an uninitializedimageReference and GraphQL threwCannot return null for non-nullable field DamFileImage.width. Added animage@ResolveFieldonFilesResolverthat initializes the Reference if needed, so consumers don't have to remember to populate it.
@comet/api-generator@8.23.1
Patch Changes
-
56a5883: Fix missing import for nested
ManyToOneresolver target entities@comet/api-generatornow imports nestedManyToOnetarget entities in generated resolvers so generated code compiles without unresolved symbol errors.
@comet/cms-api@8.23.1
Patch Changes
-
662eb98: Fix
FileFieldbreaking image block selectionThe
DamFileFieldFilefragment lost the image dimensions (width,height,cropArea) needed byDamImageBlock/PixelImageBlock. Selecting an image inside an image block crashed because those fields were missing. Restored them on the fragment.Composing the fragment into a parent collection (e.g. a many-to-many to
DamFile) exposed a Mikro-ORM gotcha:Collection.loadItems()does not honoreager: true, so each loadedDamFilehad an uninitializedimageReference and GraphQL threwCannot return null for non-nullable field DamFileImage.width. Added animage@ResolveFieldonFilesResolverthat initializes the Reference if needed, so consumers don't have to remember to populate it.