diff options
author | ThibG <thib@sitedethib.com> | 2019-07-30 15:40:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-30 15:40:28 +0200 |
commit | 4ecfa8f298399d9857737f212fc8f5767ffa7c6d (patch) | |
tree | 16896fc6f86c006ed6aba93db23cdec84c11bee3 /app/javascript/flavours | |
parent | f48c7689d230b915ed740a4774736bd5998cbc66 (diff) | |
parent | d8097ecd2f787aa0a065a753146151074eef55c6 (diff) |
Merge pull request #1183 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/javascript/flavours')
-rw-r--r-- | app/javascript/flavours/glitch/reducers/search.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/reducers/search.js b/app/javascript/flavours/glitch/reducers/search.js index f4d99a99a..c346e958b 100644 --- a/app/javascript/flavours/glitch/reducers/search.js +++ b/app/javascript/flavours/glitch/reducers/search.js @@ -44,7 +44,8 @@ export default function search(state = initialState, action) { hashtags: fromJS(action.results.hashtags), })).set('submitted', true).set('searchTerm', action.searchTerm); case SEARCH_EXPAND_SUCCESS: - return state.updateIn(['results', action.searchType], list => list.concat(action.results[action.searchType].map(item => item.id))); + const results = action.searchType === 'hashtags' ? fromJS(action.results.hashtags) : action.results[action.searchType].map(item => item.id); + return state.updateIn(['results', action.searchType], list => list.concat(results)); default: return state; } |