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 426e510 commit 7f3164aCopy full SHA for 7f3164a
cds-plugin.js
@@ -40,6 +40,11 @@ cds.on('loaded', m => {
40
const keys = [], { elements: elms } = entity
41
for (let e in elms) if (elms[e].key) keys.push(e)
42
43
+ // If no key attribute is defined for the entity, the logic to add association to ChangeView should be skipped.
44
+ if(keys.length === 0) {
45
+ continue;
46
+ }
47
+
48
// Add association to ChangeView...
49
const on = [...changes.on]; keys.forEach((k, i) => { i && on.push('||'); on.push({
50
ref: k === 'up_' ? [k,'ID'] : [k] // REVISIT: up_ handling is a dirty hack for now
0 commit comments