From 2034a99c7aa9fd42d523006604c5fb57ef7c0383 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 7 Feb 2021 11:48:35 +0100 Subject: [PATCH] only show if key is set --- static/js/documentInfoView.leftovers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]