1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 02:38:53 +00:00

Only show section title when it has content (#28141)

This commit is contained in:
Bram Kragten
2025-11-26 13:56:55 +01:00
committed by GitHub
parent 44aa15809a
commit a6c71719d1

View File

@@ -599,7 +599,7 @@ class DialogAddAutomationElement
: nothing}
${collections.map(
(collection, index) => html`
${collection.titleKey
${collection.titleKey && collection.groups.length
? html`<ha-section-title>
${this.hass.localize(collection.titleKey)}
</ha-section-title>`