From c0be2808fa8defd27ddfb57014284445dfb11f83 Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Mon, 10 Dec 2018 09:18:13 -0300 Subject: [PATCH] Hide Favorite channel section when there are not favorite channels (#2439) --- app/components/sidebars/main/channels_list/list/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/sidebars/main/channels_list/list/index.js b/app/components/sidebars/main/channels_list/list/index.js index f0ab2030a..0a9eabe09 100644 --- a/app/components/sidebars/main/channels_list/list/index.js +++ b/app/components/sidebars/main/channels_list/list/index.js @@ -46,7 +46,7 @@ function mapStateToProps(state) { sidebarPrefs.grouping, sidebarPrefs.sorting, sidebarPrefs.unreads_at_top === 'true', - sidebarPrefs.favorite_at_top === 'true', + sidebarPrefs.favorite_at_top === 'true' && favoriteChannelIds.length, )); return {