From 34b52e5f9b134547f5feb0206f5f60e8e2d56da8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Wed, 9 Oct 2024 17:34:23 +0200 Subject: [PATCH] pl-fe: Use store from an action correctly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-fe/src/actions/notifications.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/pl-fe/src/actions/notifications.ts b/packages/pl-fe/src/actions/notifications.ts index 41d757fff..1d1dce8df 100644 --- a/packages/pl-fe/src/actions/notifications.ts +++ b/packages/pl-fe/src/actions/notifications.ts @@ -72,8 +72,8 @@ const fetchRelatedRelationships = (dispatch: AppDispatch, notifications: Array - (dispatch: AppDispatch, getState: () => RootState) => { - const selectedFilter = useSettingsStore().settings.notifications.quickFilter.active; + (dispatch: AppDispatch) => { + const selectedFilter = useSettingsStore.getState().settings.notifications.quickFilter.active; const showInColumn = selectedFilter === 'all' ? true : (FILTER_TYPES[selectedFilter as FilterType] || [notification.type]).includes(notification.type); if (notification.account) {