Skip to content

Commit

Permalink
Fix quirks in URL field in view editor (#21410)
Browse files Browse the repository at this point in the history
  • Loading branch information
karwosts authored Jul 19, 2024
1 parent 6e29b77 commit 8cb63ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/panels/lovelace/editor/view-editor/hui-view-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit 8cb63ac

Please sign in to comment.