Sfoglia il codice sorgente

Cloud Watch Alarms

Soham Dessai 2 anni fa
parent
commit
d6b568e686

+ 4 - 3
dashboard/src/main/home/cluster-dashboard/dashboard/Compliance.tsx

@@ -365,11 +365,12 @@ const Compliance: React.FC<Props> = (props) => {
         };
       });
 
+      // if new control is added add its individual enabled field to align with the enabled field here 
       setSoc2Enabled(
         cloudTrailEnabled &&
-          eksValues.enableKmsEncryption &&
-          eksValues.enableEcrScanning &&
-          (eksValues.cloudwatchAlarm?.enable || false)
+        eksValues.enableKmsEncryption &&
+        eksValues.enableEcrScanning &&
+        (eksValues.cloudwatchAlarm?.enable)
       );
     }
   }, [props.selectedClusterVersion]);