This is an automated email from the ASF dual-hosted git repository.

kerwin612 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git


The following commit(s) were added to refs/heads/master by this push:
     new aeac1ffed [bugfix] fix alarm threshold ava can not modify (#2494)
aeac1ffed is described below

commit aeac1ffed4de917f46a98e8945bbd72af6630dae
Author: tomsun28 <[email protected]>
AuthorDate: Fri Aug 9 17:09:31 2024 +0800

    [bugfix] fix alarm threshold ava can not modify (#2494)
    
    Signed-off-by: tomsun28 <[email protected]>
    Co-authored-by: Kerwin Bryant <[email protected]>
---
 web-app/src/app/routes/alert/alert-setting/alert-setting.component.ts | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/web-app/src/app/routes/alert/alert-setting/alert-setting.component.ts 
b/web-app/src/app/routes/alert/alert-setting/alert-setting.component.ts
index 7ad32d237..beb75d5e8 100644
--- a/web-app/src/app/routes/alert/alert-setting/alert-setting.component.ts
+++ b/web-app/src/app/routes/alert/alert-setting/alert-setting.component.ts
@@ -669,7 +669,9 @@ export class AlertSettingComponent implements OnInit {
   }
 
   onManageModalOk() {
-    this.defineForm.form.addControl('ruleset', this.qbFormCtrl);
+    if (this.cascadeValues.length == 3) {
+      this.defineForm.form.addControl('ruleset', this.qbFormCtrl);
+    }
     if (this.defineForm?.invalid) {
       Object.values(this.defineForm.controls).forEach(control => {
         if (control.invalid) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to