From: ThibG Date: Fri, 28 Jun 2019 17:29:11 +0000 (+0200) Subject: Display FTS warning based on actual search term, not the one being typed (#11202) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=4f5b221be21e62257c16e47e998cdf757991f871;p=mastodon.git Display FTS warning based on actual search term, not the one being typed (#11202) Follow-up to #11112 --- diff --git a/app/javascript/mastodon/features/compose/containers/search_results_container.js b/app/javascript/mastodon/features/compose/containers/search_results_container.js index 623c52881..e4d5f3420 100644 --- a/app/javascript/mastodon/features/compose/containers/search_results_container.js +++ b/app/javascript/mastodon/features/compose/containers/search_results_container.js @@ -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 => ({