diff --git a/static/js/pandora/news.js b/static/js/pandora/news.js index 010dc264..74d54433 100644 --- a/static/js/pandora/news.js +++ b/static/js/pandora/news.js @@ -18,9 +18,13 @@ pandora.ui.news = function(width, height) { pandora.api.getNews({}, function(result) { items = result.data.items; - selected = items[0].id; - renderItem(); - renderList(); + if(items.length) { + selected = items[0].id; + renderItem(); + renderList(); + } else if (isEditable) { + addItem(); + } }); function addItem() {