We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 417ce6d commit ebde99fCopy full SHA for ebde99f
lib/csn-runtime-extension.js
@@ -6,7 +6,7 @@ Object.defineProperty(cds.builtin.classes.entity.prototype, '_attachments', {
6
const entity = this;
7
return {
8
get hasAttachmentsComposition() {
9
- return entity.compositions && Object.keys(entity.compositions).some(ele => entity.compositions[ele]._target?.["@_is_media_data"])
+ return entity.compositions && Object.keys(entity.compositions).some(ele => entity.compositions[ele]._target?.["@_is_media_data"] || entity.compositions[ele]._target?._attachments.hasAttachmentsComposition)
10
},
11
get attachmentCompositions() {
12
const resultSet = new LinkedDefinitions()
0 commit comments