Shunm634-source 3 лет назад
Родитель
Сommit
f4a7551f90

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

@@ -30,7 +30,7 @@ const ManageGlobalNotification = (props) => {
   const [notifyToType, setNotifyToType] = useState('mail');
   const [emailToSend, setEmailToSend] = useState('');
   const [slackChannelToSend, setSlackChannelToSend] = useState('');
-  const [triggerEvents, setTriggerEvents] = useState(new Set(globalNotification.triggerEvents));
+  const [triggerEvents, setTriggerEvents] = useState(new Set(globalNotification?.triggerEvents));
 
   const onChangeTriggerEvents = (triggerEvent) => {