From b5fc9781adf9753d2c764421af7b0355234d21a1 Mon Sep 17 00:00:00 2001 From: wn_ Date: Tue, 1 Aug 2017 18:15:16 -0500 Subject: [PATCH] Don't display label context menu items if there are no labels. Caused by: 5e78b0c253d56d85b0339636c8793f93c835b792 See: https://discourse.tt-rss.org/t/label-options-sometimes-not-showing-in-context-menu/366 --- js/viewfeed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/viewfeed.js b/js/viewfeed.js index 3aaea99b9..e0ad2dd32 100755 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -1740,7 +1740,7 @@ function headlinesMenuCommon(menu) { var labels = getInitParam("labels"); - if (labels) { + if (labels && labels.length) { menu.addChild(new dijit.MenuSeparator());