diff --git a/static/js/documentInfoView.leftovers.js b/static/js/documentInfoView.leftovers.js index fc003d7..d24d095 100644 --- a/static/js/documentInfoView.leftovers.js +++ b/static/js/documentInfoView.leftovers.js @@ -232,7 +232,7 @@ pandora.ui.documentInfoView = function(data, isMixed) { }, keys: ['id', 'name', 'description'] }, function(result) { - if ((result && result.data.items.length == 1) || canEdit) { + if (data[key] && ((result && result.data.items.length == 1) || canEdit)) { var entity = {} if (result && result.data.items.length) { entity = result.data.items[0]