Browse Source

Revert "if slack token is null, convert to ''"

This reverts commit f5b78a0fe4963258708f6b356129f2c77c5eb361.
yusuketk 6 years ago
parent
commit
91c9f7fd79
1 changed files with 7 additions and 7 deletions
  1. 7 7
      src/client/js/services/AdminNotificationContainer.js

+ 7 - 7
src/client/js/services/AdminNotificationContainer.js

@@ -47,13 +47,13 @@ export default class AdminNotificationContainer extends Container {
       const { notificationParams } = response.data;
 
       this.setState({
-        webhookUrl: notificationParams.webhookUrl || '',
-        isIncomingWebhookPrioritized: notificationParams.isIncomingWebhookPrioritized || false,
-        slackToken: notificationParams.slackToken || '',
-        userNotifications: notificationParams.userNotifications || [],
-        isNotificationForOwnerPageEnabled: notificationParams.isNotificationForOwnerPageEnabled || false,
-        isNotificationForGroupPageEnabled: notificationParams.isNotificationForGroupPageEnabled || false,
-        globalNotifications: notificationParams.globalNotifications || [],
+        webhookUrl: notificationParams.webhookUrl,
+        isIncomingWebhookPrioritized: notificationParams.isIncomingWebhookPrioritized,
+        slackToken: notificationParams.slackToken,
+        userNotifications: notificationParams.userNotifications,
+        isNotificationForOwnerPageEnabled: notificationParams.isNotificationForOwnerPageEnabled,
+        isNotificationForGroupPageEnabled: notificationParams.isNotificationForGroupPageEnabled,
+        globalNotifications: notificationParams.globalNotifications,
       });
 
     }