Skip to content

Commit 4d931e5

Browse files
authored
Fix: #18209 (#18276)
* first render ones a option is available * simpler logic
1 parent 37cc67c commit 4d931e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Umbraco.Web.UI.Client/src/packages/block/block-grid/property-editors/block-grid-area-type-permission/block-grid-area-type-permission.element.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ export class UmbPropertyEditorUIBlockGridAreaTypePermissionElement
123123
}
124124

125125
override render() {
126+
if (this._blockTypesWithElementName.length === 0) {
127+
return nothing;
128+
}
126129
return html`<div id="permissions">
127130
${repeat(
128131
this._value,

0 commit comments

Comments
 (0)