فهرست منبع

fixed the code that was overlooked(ST)

Shunm634-source 3 سال پیش
والد
کامیت
f14d4edcfe
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      packages/app/src/components/Admin/Notification/ManageGlobalNotification.jsx

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

@@ -79,11 +79,11 @@ const ManageGlobalNotification = (props) => {
 
     if (triggerEvents.has(triggerEvent)) {
       triggerEvents.delete(triggerEvent);
-      this.setState({ triggerEvents });
+      setTriggerEvents({ triggerEvents });
     }
     else {
       triggerEvents.add(triggerEvent);
-      this.setState({ triggerEvents });
+      setTriggerEvents({ triggerEvents });
     }
   };