diff --git a/static/js/homeDialog.js b/static/js/homeDialog.js index 14472c347..18ed1d3a2 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) {