Skip to content

Commit 728f932

Browse files
authored
fix: Add union check in isChangeTracked function (#54)
Link the issue: https://github.tools.sap/erp4sme/cap-change-history/issues/281
1 parent c59a281 commit 728f932

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cds-plugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
const cds = require('@sap/cds')
22

33
const isChangeTracked = (entity) => (
4-
entity['@changelog']
5-
|| entity.elements && Object.values(entity.elements).some(e => e['@changelog'])
4+
(entity['@changelog']
5+
|| entity.elements && Object.values(entity.elements).some(e => e['@changelog'])) && entity.query?.SET?.op !== 'union'
66
)
77

88

0 commit comments

Comments
 (0)