diff --git a/policy-service/src/policy-engine/blocks/documents-source-addon.ts b/policy-service/src/policy-engine/blocks/documents-source-addon.ts index 9698122342..e06f2e7e8d 100644 --- a/policy-service/src/policy-engine/blocks/documents-source-addon.ts +++ b/policy-service/src/policy-engine/blocks/documents-source-addon.ts @@ -264,17 +264,15 @@ export class DocumentsSourceAddon { __sourceTag__: { $cond: { if: { - $expr: { - $and: [ - ...filters, - { - $or: [ - { $eq: [null, '$__sourceTag__'] }, - { $not: '$__sourceTag__' } - ] - } - ] - } + $and: [ + ...filters, + { + $or: [ + { $eq: [null, '$__sourceTag__'] }, + { $not: '$__sourceTag__' } + ] + } + ] }, then: ref.tag, else: '$__sourceTag__'