diff --git a/packages/rules-engine/src/RulesEngine.js b/packages/rules-engine/src/RulesEngine.js index 9aaccdeaf7..54abc28e16 100644 --- a/packages/rules-engine/src/RulesEngine.js +++ b/packages/rules-engine/src/RulesEngine.js @@ -29,14 +29,14 @@ export class RulesEngine { outputConverter: IConvertOutputRulesEffectsValue, dateUtils: IDateUtils, environment: $Values, - flags: Flag, + flags?: Flag, ) { this.inputConverter = inputConverter; this.outputConverter = outputConverter; this.valueProcessor = new ValueProcessor(inputConverter); this.variableService = new VariableService(this.valueProcessor.processValue, dateUtils, environment); this.dateUtils = dateUtils; - this.flags = flags; + this.flags = flags ?? {}; } /** diff --git a/src/core_modules/capture-core/rules/rulesEngine.js b/src/core_modules/capture-core/rules/rulesEngine.js index 2d28d960e1..dc91f9f957 100644 --- a/src/core_modules/capture-core/rules/rulesEngine.js +++ b/src/core_modules/capture-core/rules/rulesEngine.js @@ -11,5 +11,4 @@ export const rulesEngine = new RulesEngine( outputConverter, dateUtils, environmentTypes.WebClient, - { verbose: true }, );