Skip to content

Commit

Permalink
fix display name of search results (mattermost#4792)
Browse files Browse the repository at this point in the history
  • Loading branch information
reflog committed Jan 31, 2020
1 parent 139c316 commit c8e091b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/suggestion/search_channel_provider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default class SearchChannelProvider extends Provider {
// MM-12677 When this is migrated this needs to be fixed to pull the user's locale
//
const channels = data.sort(sortChannelsByTypeAndDisplayName.bind(null, 'en'));
const channelNames = channels.map((channel) => channel.name);
const channelNames = channels.map(itemToName);

resultsCallback({
matchedPretext: channelPrefix,
Expand Down

0 comments on commit c8e091b

Please sign in to comment.