Fixed: Error refreshing page on Activity/Wanted

This commit is contained in:
ta264
2020-08-18 23:31:00 +01:00
parent cc0fea2aab
commit bb409b9929
10 changed files with 65 additions and 21 deletions
@@ -17,10 +17,13 @@ import CutoffUnmet from './CutoffUnmet';
function createMapStateToProps() {
return createSelector(
(state) => state.wanted.cutoffUnmet,
(state) => state.authors,
createCommandExecutingSelector(commandNames.CUTOFF_UNMET_BOOK_SEARCH),
(cutoffUnmet, isSearchingForCutoffUnmetBooks) => {
(cutoffUnmet, authors, isSearchingForCutoffUnmetBooks) => {
return {
isAuthorFetching: authors.isFetching,
isAuthorPopulated: authors.isPopulated,
isSearchingForCutoffUnmetBooks,
isSaving: cutoffUnmet.items.filter((m) => m.isSaving).length > 1,
...cutoffUnmet