Skip to content

Commit 35ee040

Browse files
committed
Display FTS warning based on actual search term, not the one being typed
Follow-up to mastodon#11112
1 parent e64e6a0 commit 35ee040

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { fetchSuggestions, dismissSuggestion } from '../../../actions/suggestion
55
const mapStateToProps = state => ({
66
results: state.getIn(['search', 'results']),
77
suggestions: state.getIn(['suggestions', 'items']),
8-
searchTerm: state.getIn(['search', 'value']),
8+
searchTerm: state.getIn(['search', 'searchTerm']),
99
});
1010

1111
const mapDispatchToProps = dispatch => ({

0 commit comments

Comments
 (0)