chore(redux): change isFetching to consistently be boolean (#1570)
This commit is contained in:
committed by
Shawn Erquhart
parent
cd6e8de3d3
commit
4d8e176797
@ -44,7 +44,7 @@ const entries = (state = defaultState, action) => {
|
||||
case QUERY_REQUEST:
|
||||
if (action.payload.searchTerm !== state.get('term')) {
|
||||
return state.withMutations((map) => {
|
||||
map.set('isFetching', action.payload.namespace);
|
||||
map.set('isFetching', action.payload.namespace ? true : false);
|
||||
map.set('term', action.payload.searchTerm);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user