diff --git a/apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.component.ts b/apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.component.ts index 74cc80f26..1a7cf76c3 100644 --- a/apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.component.ts +++ b/apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.component.ts @@ -34,8 +34,8 @@ export class GfRuleSettingsDialogComponent { private formBuilder: FormBuilder ) { this.settingsForm = this.formBuilder.group({ - thresholdMax: [this.data.settings.thresholdMax], - thresholdMin: [this.data.settings.thresholdMin] + thresholdMax: [this.data.settings?.thresholdMax], + thresholdMin: [this.data.settings?.thresholdMin] }); }