From d9e9f47b8ece4cd1f4a56a3806675a50998f82e7 Mon Sep 17 00:00:00 2001 From: KMY Date: Tue, 19 Sep 2023 09:50:28 +0900 Subject: [PATCH] Fix original mastodon bug --- app/javascript/mastodon/reducers/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/mastodon/reducers/search.js b/app/javascript/mastodon/reducers/search.js index 72835eb91745f3..cf1aa7955730c6 100644 --- a/app/javascript/mastodon/reducers/search.js +++ b/app/javascript/mastodon/reducers/search.js @@ -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);