fix notify_email state to only update for email notification types
This commit is contained in:
1 parent
5c74c0e452
commit
a006d7194e
1 file changed
+1
-1
@@ -248,7 +248,7 @@ const CreateInfrastructureMonitor = () => {
|
||||
setInfrastructureMonitor((prev) => ({
|
||||
...prev,
|
||||
notifications,
|
||||
notify_email: checked,
|
||||
...(type === "email" ? { notify_email: checked } : {})
|
||||
}));
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user