mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
PLT-5135: Fix left channel in more channels list. (#5114)
The problem was it was not being sorted, so appeared at the bottom of the list.
This commit is contained in:
@@ -284,7 +284,12 @@ class ChannelStoreClass extends EventEmitter {
|
||||
|
||||
getMoreChannelsList(teamId = TeamStore.getCurrentId()) {
|
||||
const teamChannels = this.moreChannels[teamId] || {};
|
||||
return Object.keys(teamChannels).map((cid) => teamChannels[cid]);
|
||||
|
||||
if (!Utils) {
|
||||
Utils = require('utils/utils.jsx'); //eslint-disable-line global-require
|
||||
}
|
||||
|
||||
return Object.keys(teamChannels).map((cid) => teamChannels[cid]).sort(Utils.sortByDisplayName);
|
||||
}
|
||||
|
||||
storeStats(stats) {
|
||||
|
||||
Reference in New Issue
Block a user