]> cat aescling's git repositories - mastodon.git/commitdiff
Display FTS warning based on actual search term, not the one being typed (#11202)
authorThibG <thib@sitedethib.com>
Fri, 28 Jun 2019 17:29:11 +0000 (19:29 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 28 Jun 2019 17:29:11 +0000 (19:29 +0200)
Follow-up to #11112

app/javascript/mastodon/features/compose/containers/search_results_container.js

index 623c528813fb54168e5b6cb3423c8dd5a51eb75e..e4d5f3420787c81184c529bc951e843243a46cfb 100644 (file)
@@ -5,7 +5,7 @@ import { fetchSuggestions, dismissSuggestion } from '../../../actions/suggestion
 const mapStateToProps = state => ({
   results: state.getIn(['search', 'results']),
   suggestions: state.getIn(['suggestions', 'items']),
-  searchTerm: state.getIn(['search', 'value']),
+  searchTerm: state.getIn(['search', 'searchTerm']),
 });
 
 const mapDispatchToProps = dispatch => ({