mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Fix quirks in URL field in view editor (#21410)
This commit is contained in:
parent
6e29b77e94
commit
8cb63ac36d
@ -146,11 +146,11 @@ export class HuiViewEditor extends LitElement {
|
||||
if (
|
||||
this.isNew &&
|
||||
!this._suggestedPath &&
|
||||
config.title &&
|
||||
this._config.path === config.path &&
|
||||
(!this._config.path ||
|
||||
config.path === slugify(this._config.title || "", "-"))
|
||||
) {
|
||||
config.path = slugify(config.title, "-");
|
||||
config.path = slugify(config.title || "", "-");
|
||||
}
|
||||
|
||||
fireEvent(this, "view-config-changed", { config });
|
||||
|
Loading…
x
Reference in New Issue
Block a user