diff --git a/static/js/homeDialog.js b/static/js/homeDialog.js index 14472c34..18ed1d3a 100644 --- a/static/js/homeDialog.js +++ b/static/js/homeDialog.js @@ -307,14 +307,13 @@ pandora.ui.homeDialog = function() { } function renderItem(data) { - $item.empty().append( - pandora.renderHomeItem({ - data: data, - editItem: editItem - }).css({ - margin: '16px' - }) - ); + $item.empty(); + data && pandora.renderHomeItem({ + data: data, + editItem: editItem + }).css({ + margin: '16px' + }).appendTo($item); } function renderList(items, selected) {