Skip to content

Commit

Permalink
Merge pull request umbraco#18008 from umbraco/v15/bugfix/fixing-empty…
Browse files Browse the repository at this point in the history
…-groups-appear-in-add-content-modal

Fix: Empty groups appear in block grid editor Add content UI
  • Loading branch information
nielslyngsoe authored Jan 16, 2025
2 parents e00290f + 42997ee commit 1e59d88
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export class UmbBlockCatalogueModalElement extends UmbModalBaseElement<
: nothing}
${this._filtered.map(
(group) => html`
${group.name && group.name !== '' ? html`<h4>${group.name}</h4>` : nothing}
${group.name && group.blocks.length !== 0 && group.name !== '' ? html`<h4>${group.name}</h4>` : nothing}
<div class="blockGroup">
${repeat(
group.blocks,
Expand Down

0 comments on commit 1e59d88

Please sign in to comment.