Skip to content

Commit ebde99f

Browse files
committed
Adjustment to nesting
1 parent 417ce6d commit ebde99f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/csn-runtime-extension.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Object.defineProperty(cds.builtin.classes.entity.prototype, '_attachments', {
66
const entity = this;
77
return {
88
get hasAttachmentsComposition() {
9-
return entity.compositions && Object.keys(entity.compositions).some(ele => entity.compositions[ele]._target?.["@_is_media_data"])
9+
return entity.compositions && Object.keys(entity.compositions).some(ele => entity.compositions[ele]._target?.["@_is_media_data"] || entity.compositions[ele]._target?._attachments.hasAttachmentsComposition)
1010
},
1111
get attachmentCompositions() {
1212
const resultSet = new LinkedDefinitions()

0 commit comments

Comments
 (0)