fix email type
This commit is contained in:
1 parent
bea23a94bb
commit
4fd2a29ab3
1 file changed
+1
-1
@@ -130,7 +130,7 @@ const CreateNotifications = () => {
|
||||
(type) => type._id === newNotification.type
|
||||
).value;
|
||||
|
||||
if (newNotification.type === "email") {
|
||||
if (type === "email") {
|
||||
newNotification.config = null;
|
||||
} else if (type === "slack" || type === "webhook" || type === "discord") {
|
||||
newNotification.address = "";
|
||||
|
||||
Reference in new issue
Block a user