pl-fe: Use store from an action correctly
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
299fd52dc1
commit
34b52e5f9b
1 changed files with 2 additions and 2 deletions
|
@ -72,8 +72,8 @@ const fetchRelatedRelationships = (dispatch: AppDispatch, notifications: Array<B
|
||||||
};
|
};
|
||||||
|
|
||||||
const updateNotifications = (notification: BaseNotification) =>
|
const updateNotifications = (notification: BaseNotification) =>
|
||||||
(dispatch: AppDispatch, getState: () => RootState) => {
|
(dispatch: AppDispatch) => {
|
||||||
const selectedFilter = useSettingsStore().settings.notifications.quickFilter.active;
|
const selectedFilter = useSettingsStore.getState().settings.notifications.quickFilter.active;
|
||||||
const showInColumn = selectedFilter === 'all' ? true : (FILTER_TYPES[selectedFilter as FilterType] || [notification.type]).includes(notification.type);
|
const showInColumn = selectedFilter === 'all' ? true : (FILTER_TYPES[selectedFilter as FilterType] || [notification.type]).includes(notification.type);
|
||||||
|
|
||||||
if (notification.account) {
|
if (notification.account) {
|
||||||
|
|
Loading…
Reference in a new issue