mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-20 02:38:53 +00:00
Safer lookup of description_placeholders when service is invalid (#28273)
This commit is contained in:
@@ -467,7 +467,7 @@ export class HaServiceControl extends LitElement {
|
||||
|
||||
const descriptionPlaceholders =
|
||||
domain && serviceName
|
||||
? this.hass.services[domain][serviceName].description_placeholders
|
||||
? this.hass.services[domain]?.[serviceName]?.description_placeholders
|
||||
: undefined;
|
||||
|
||||
const description =
|
||||
|
||||
@@ -137,7 +137,7 @@ class HaPanelDevAction extends LitElement {
|
||||
|
||||
const descriptionPlaceholders =
|
||||
domain && serviceName
|
||||
? this.hass.services[domain][serviceName].description_placeholders
|
||||
? this.hass.services[domain]?.[serviceName]?.description_placeholders
|
||||
: undefined;
|
||||
|
||||
return html`
|
||||
|
||||
Reference in New Issue
Block a user