Преглед изворни кода

fix requestParams and success to create a new triggerEvent

kaori пре 3 година
родитељ
комит
09dd0612dc

+ 3 - 3
packages/app/src/components/Admin/Notification/ManageGlobalNotification.jsx

@@ -50,9 +50,9 @@ const ManageGlobalNotification = (props) => {
     const requestParams = {
       triggerPath,
       notifyToType,
-      emailToSend,
-      slackChannelToSend,
-      triggerEvents,
+      toEmail: emailToSend,
+      slackChannels: slackChannelToSend,
+      triggerEvents: [...triggerEvents],
     };
 
     try {