From dc6ad3847480e4fabefa39d32b3965fe28ff4f31 Mon Sep 17 00:00:00 2001 From: KMY Date: Tue, 19 Sep 2023 10:57:36 +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 77c8eebb9afd7e..e34ad8bd2ce799 100644 --- a/app/javascript/mastodon/reducers/search.js +++ b/app/javascript/mastodon/reducers/search.js @@ -75,7 +75,7 @@ export default function search(state = initialState, action) { map.set('isLoading', false); }); case SEARCH_EXPAND_REQUEST: - return state.set('type', action.searchType); + 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)).setIn(['noMoreResults', action.searchType], results.size <= 0);