From a006d7194e1a2efa152efe60a696fb011d8b1d3f Mon Sep 17 00:00:00 2001 From: Vishnu Sreekumaran Nair <200557136@student.georgianc.on.ca> Date: Tue, 18 Mar 2025 13:59:11 -0400 Subject: [PATCH] fix notify_email state to only update for email notification types --- src/Pages/Infrastructure/Create/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pages/Infrastructure/Create/index.jsx b/src/Pages/Infrastructure/Create/index.jsx index be45439dc..6fd0f1fbe 100644 --- a/src/Pages/Infrastructure/Create/index.jsx +++ b/src/Pages/Infrastructure/Create/index.jsx @@ -248,7 +248,7 @@ const CreateInfrastructureMonitor = () => { setInfrastructureMonitor((prev) => ({ ...prev, notifications, - notify_email: checked, + ...(type === "email" ? { notify_email: checked } : {}) })); };