(cherry picked from commit 000caf09e9)
Co-authored-by: Shaz Amjad <shaz.amjad@mattermost.com>
This commit is contained in:
parent
546487aa08
commit
7538ad2c6f
1 changed files with 3 additions and 0 deletions
|
|
@ -466,6 +466,9 @@ export default class List extends PureComponent {
|
|||
// Add the rest
|
||||
if (this.props.categories) {
|
||||
this.props.categories.reduce((prev, cat) => {
|
||||
if (cat.type === 'favorites' && !cat.channel_ids.length) {
|
||||
return prev;
|
||||
}
|
||||
prev.push({
|
||||
name: cat.display_name,
|
||||
action: cat.type === 'direct_messages' ? this.goToDirectMessages : () => this.showCreateChannelOptions(cat),
|
||||
|
|
|
|||
Loading…
Reference in a new issue