From c15e8e7fe74baafce3ce3b81080d1557b99a0b27 Mon Sep 17 00:00:00 2001 From: mpetrov Date: Thu, 7 Nov 2024 17:18:43 +0200 Subject: [PATCH] refactoring --- .../home/pages/rulechain/rule-node-details.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui-ngx/src/app/modules/home/pages/rulechain/rule-node-details.component.ts b/ui-ngx/src/app/modules/home/pages/rulechain/rule-node-details.component.ts index 02fa18bd83..1c0712c778 100644 --- a/ui-ngx/src/app/modules/home/pages/rulechain/rule-node-details.component.ts +++ b/ui-ngx/src/app/modules/home/pages/rulechain/rule-node-details.component.ts @@ -29,7 +29,7 @@ import { PageComponent } from '@shared/components/page.component'; import { Store } from '@ngrx/store'; import { AppState } from '@core/core.state'; import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms'; -import { FcRuleNode, RuleNodeType } from '@shared/models/rule-node.models'; +import { DebugStrategy, FcRuleNode, RuleNodeType } from '@shared/models/rule-node.models'; import { EntityType } from '@shared/models/entity-type.models'; import { Subject } from 'rxjs'; import { RuleNodeConfigComponent } from './rule-node-config.component'; @@ -92,7 +92,7 @@ export class RuleNodeDetailsComponent extends PageComponent implements OnInit, O if (this.ruleNode) { this.ruleNodeFormGroup = this.fb.group({ name: [this.ruleNode.name, [Validators.required, Validators.pattern('(.|\\s)*\\S(.|\\s)*'), Validators.maxLength(255)]], - debugStrategy: [this.ruleNode.debugStrategy], + debugStrategy: [this.ruleNode.debugStrategy ?? DebugStrategy.DISABLED], singletonMode: [this.ruleNode.singletonMode, []], configuration: [this.ruleNode.configuration, [Validators.required]], additionalInfo: this.fb.group(