diff --git a/packages/pl-fe/src/actions/notifications.ts b/packages/pl-fe/src/actions/notifications.ts index a9ea39461..ceb425fd2 100644 --- a/packages/pl-fe/src/actions/notifications.ts +++ b/packages/pl-fe/src/actions/notifications.ts @@ -298,13 +298,15 @@ const scrollTopNotifications = (top: boolean) => const setFilter = (filterType: FilterType, abort?: boolean) => (dispatch: AppDispatch, getState: () => RootState) => { + const activeFilter = getSettings(getState()).getIn(['notifications', 'quickFilter', 'active']); + dispatch({ type: NOTIFICATIONS_FILTER_SET, path: ['notifications', 'quickFilter', 'active'], value: filterType, }); dispatch(expandNotifications(undefined, undefined, abort)); - if (getSettings(getState()).getIn(['notifications', 'quickFilter', 'active']) !== filterType) dispatch(saveSettings()); + if (activeFilter !== filterType) dispatch(saveSettings()); }; const markReadNotifications = () =>