Skip to content

Commit 1e59d88

Browse files
authored
Merge pull request #18008 from umbraco/v15/bugfix/fixing-empty-groups-appear-in-add-content-modal
Fix: Empty groups appear in block grid editor Add content UI
2 parents e00290f + 42997ee commit 1e59d88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Umbraco.Web.UI.Client/src/packages/block/block/modals/block-catalogue/block-catalogue-modal.element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export class UmbBlockCatalogueModalElement extends UmbModalBaseElement<
157157
: nothing}
158158
${this._filtered.map(
159159
(group) => html`
160-
${group.name && group.name !== '' ? html`<h4>${group.name}</h4>` : nothing}
160+
${group.name && group.blocks.length !== 0 && group.name !== '' ? html`<h4>${group.name}</h4>` : nothing}
161161
<div class="blockGroup">
162162
${repeat(
163163
group.blocks,

0 commit comments

Comments
 (0)