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:
@@ -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>`
|
||||
|
||||
Reference in New Issue
Block a user