From 9e9ead095420d6f5e65b2a20aca5928e367d003d Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Mon, 1 May 2017 16:43:23 +0530 Subject: [PATCH] FIX: incorrect label for top topics dropdown on mobile when filtering --- .../javascripts/discourse/components/navigation-bar.js.es6 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/components/navigation-bar.js.es6 b/app/assets/javascripts/discourse/components/navigation-bar.js.es6 index 7a61c50cbca..5f9e1266f10 100644 --- a/app/assets/javascripts/discourse/components/navigation-bar.js.es6 +++ b/app/assets/javascripts/discourse/components/navigation-bar.js.es6 @@ -13,7 +13,8 @@ export default Ember.Component.extend({ }, @computed("filterMode", "navItems") - selectedNavItem(filterMode, navItems){ + selectedNavItem(filterMode, navItems) { + if (filterMode.indexOf("top/") === 0) { filterMode = "top"; } var item = navItems.find(i => i.get('filterMode').indexOf(filterMode) === 0); return item || navItems[0]; },