Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

MM-11794: Don't keep highlighting search terms on flag/pin view. #1636

Merged
merged 1 commit into from
Aug 29, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/search_results/search_results.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ export default class SearchResults extends React.PureComponent {
matches={this.props.matches[post.id]}
lastPostCount={(reverseCount >= 0 && reverseCount < Constants.TEST_ID_COUNT) ? reverseCount : -1}
user={profile}
term={searchTerms}
term={(!this.props.isFlaggedPosts && !this.props.isPinnedPosts && !this.props.isMentionSearch) ? searchTerms : ''}
isMentionSearch={this.props.isMentionSearch}
isFlagged={isFlagged}
isBusy={this.state.isBusy}
Expand Down