mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
FIx selecting service/url path action after choosing default action (#9376)
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
This commit is contained in:
parent
226d6216b7
commit
8a33d174d7
@ -33,18 +33,18 @@ export class HuiActionEditor extends LitElement {
|
||||
@property() protected hass?: HomeAssistant;
|
||||
|
||||
get _navigation_path(): string {
|
||||
const config = this.config as NavigateActionConfig;
|
||||
return config.navigation_path || "";
|
||||
const config = this.config as NavigateActionConfig | undefined;
|
||||
return config?.navigation_path || "";
|
||||
}
|
||||
|
||||
get _url_path(): string {
|
||||
const config = this.config as UrlActionConfig;
|
||||
return config.url_path || "";
|
||||
const config = this.config as UrlActionConfig | undefined;
|
||||
return config?.url_path || "";
|
||||
}
|
||||
|
||||
get _service(): string {
|
||||
const config = this.config as CallServiceActionConfig;
|
||||
return config.service || "";
|
||||
return config?.service || "";
|
||||
}
|
||||
|
||||
private _serviceAction = memoizeOne(
|
||||
|
Loading…
x
Reference in New Issue
Block a user