pl-fe: fix filters

Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
mkljczk
2024-12-16 16:47:01 +01:00
parent 74e96b7ec3
commit 41d98f22f2

View File

@ -22,7 +22,8 @@ const fetchFilters = () =>
if (!isLoggedIn(getState)) return;
return getClient(getState).filtering.getFilters()
.then((data) => ({
.then((data) => dispatch<FiltersAction>({
type: FILTERS_FETCH_SUCCESS,
filters: data,
}))
.catch(error => ({