diff options
author | Reverite <github@reverite.sh> | 2019-06-28 22:48:00 -0700 |
---|---|---|
committer | Reverite <github@reverite.sh> | 2019-06-28 22:48:00 -0700 |
commit | 01e77afe9a0dc126506cfc98d8f5d330f4a2f076 (patch) | |
tree | 387f07d7180c0852832f7923a34562c9f385d91f /app/javascript/flavours/glitch/reducers/search.js | |
parent | 9861df046853b71370cede86afbba1a371714756 (diff) | |
parent | 98c2d2aa46c2725b360907cf5537338ac6d052ed (diff) |
Merge branch 'glitch' into production
Diffstat (limited to 'app/javascript/flavours/glitch/reducers/search.js')
-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 9a525bf47..1c32a5b9f 100644 --- a/app/javascript/flavours/glitch/reducers/search.js +++ b/app/javascript/flavours/glitch/reducers/search.js @@ -16,6 +16,7 @@ const initialState = ImmutableMap({ submitted: false, hidden: false, results: ImmutableMap(), + searchTerm: '', }); export default function search(state = initialState, action) { @@ -40,7 +41,7 @@ export default function search(state = initialState, action) { accounts: ImmutableList(action.results.accounts.map(item => item.id)), statuses: ImmutableList(action.results.statuses.map(item => item.id)), hashtags: fromJS(action.results.hashtags), - })).set('submitted', true); + })).set('submitted', true).set('searchTerm', action.searchTerm); default: return state; } |