From cd2855634eb4528d003ec7080e3c8aa0002bc5e2 Mon Sep 17 00:00:00 2001 From: James <37091895+james-whittington1@users.noreply.github.com> Date: Sat, 26 Aug 2023 13:20:15 +1200 Subject: [PATCH] Update umbBlockGridPropertyEditor.component.js currently checks the first group or tab (index 0) that was added to see if there are properties. This doesn't work well when the tab has a single group, and the group is created after the tab, as the tab will be empty, even though the group has the properties. there is also some interactions when composing tabs from other doc types, but I didn't have a good amount of time to test this. --- .../blockgrid/umbBlockGridPropertyEditor.component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/blockgrid/umbBlockGridPropertyEditor.component.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/blockgrid/umbBlockGridPropertyEditor.component.js index c37b41aca3..296d98ab7a 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/blockgrid/umbBlockGridPropertyEditor.component.js +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/blockgrid/umbBlockGridPropertyEditor.component.js @@ -493,7 +493,7 @@ block.showValidation = true; block.hideContentInOverlay = block.config.forceHideContentEditorInOverlay === true; - block.showContent = !block.hideContentInOverlay && block.content?.variants[0].tabs[0]?.properties.length > 0; + block.showContent = !block.hideContentInOverlay && block.content?.variants[0].tabs?.some(tab=>tab.properties.length) === true; block.showSettings = block.config.settingsElementTypeKey != null; // If we have content, otherwise it doesn't make sense to copy.