Skip to content

Commit

Permalink
[Fixes 1195] (#1197) (#1200)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidQuartz authored Sep 13, 2022
1 parent 49d48b6 commit 0453691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geonode_mapstore_client/client/js/epics/favorite.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const gnSaveFavoriteContent = (action$, store) =>
return Observable.of(
updateResources(newResources, true),
// if on favorites filter page, we must adjust total count appropriately
...((state?.gnsearch?.params?.f?.includes('favorite') && !action.favorite) ? [reduceTotalCount()] : [increaseTotalCount()])
...(state?.gnsearch?.params?.f?.includes('favorite') ? (!action.favorite ? [reduceTotalCount()] : [increaseTotalCount()]) : [])
);
})
.catch((error) => {
Expand Down

0 comments on commit 0453691

Please sign in to comment.