diff --git a/frontend/public/components/notification-drawer.tsx b/frontend/public/components/notification-drawer.tsx index 46fa944a35c..abcda1d432f 100644 --- a/frontend/public/components/notification-drawer.tsx +++ b/frontend/public/components/notification-drawer.tsx @@ -240,7 +240,7 @@ export const NotificationDrawer: React.FC = ({ const clusterID = getClusterID(useClusterVersion()); const showServiceLevelNotification = useShowServiceLevelNotifications(clusterID); const [pluginInfoEntries] = useDynamicPluginInfo(); - const toggleNotificationDrawer = dispatch(UIActions.notificationDrawerToggleExpanded); + const toggleNotificationDrawer = () => dispatch(UIActions.notificationDrawerToggleExpanded()); React.useEffect(() => { const poll: NotificationPoll = (url, key: 'notificationAlerts' | 'silences', dataHandler) => {