-
+
diff --git a/dashboard-ui/scripts/Itemdetailpage.js b/dashboard-ui/scripts/Itemdetailpage.js
index 128cff089..f3bbc958a 100644
--- a/dashboard-ui/scripts/Itemdetailpage.js
+++ b/dashboard-ui/scripts/Itemdetailpage.js
@@ -221,6 +221,15 @@
}
renderTags(page, item);
+
+ var elem = $('.detailSectionContent', page)[0];
+ var text = elem.textContent || elem.innerText;
+
+ if (!text.trim()) {
+ $('#detailSection', page).hide();
+ } else {
+ $('#detailSection', page).show();
+ }
}
function renderTags(page, item) {
diff --git a/dashboard-ui/scripts/itembynamedetailpage.js b/dashboard-ui/scripts/itembynamedetailpage.js
index a3d6ce3c4..5f2e6977a 100644
--- a/dashboard-ui/scripts/itembynamedetailpage.js
+++ b/dashboard-ui/scripts/itembynamedetailpage.js
@@ -335,6 +335,15 @@
} else {
$('#itemBirthLocation', page).hide();
}
+
+ var elem = $('.detailSectionContent', page)[0];
+ var text = elem.textContent || elem.innerText;
+
+ if (!text.trim()) {
+ $('#detailSection', page).hide();
+ } else {
+ $('#detailSection', page).show();
+ }
}
function renderUserDataIcons(page, item) {