fix notify_email state to only update for email notification types

This commit is contained in:
Vishnu Sreekumaran Nair committed 2025-03-18 13:59:11 -04:00
1 parent 5c74c0e452
commit a006d7194e
1 file changed
+1 -1
+1 -1
View File
@@ -248,7 +248,7 @@ const CreateInfrastructureMonitor = () => {
setInfrastructureMonitor((prev) => ({ setInfrastructureMonitor((prev) => ({
...prev, ...prev,
notifications, notifications,
notify_email: checked, ...(type === "email" ? { notify_email: checked } : {})
})); }));
}; };