Fix original mastodon bug
This commit is contained in:
parent
df0f35b0d4
commit
d9e9f47b8e
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ export default function search(state = initialState, action) {
|
|||
map.set('isLoading', false);
|
||||
});
|
||||
case SEARCH_EXPAND_REQUEST:
|
||||
return state.set('type', action.searchType).set('isLoading', true);
|
||||
return state.set('type', action.searchType); // .set('isLoading', true); // original Mastodon bug
|
||||
case SEARCH_EXPAND_SUCCESS:
|
||||
const results = action.searchType === 'hashtags' ? ImmutableOrderedSet(fromJS(action.results.hashtags)) : action.results[action.searchType].map(item => item.id);
|
||||
return state.updateIn(['results', action.searchType], list => list.union(results)).set('isLoading', false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue