Skip to content

Commit

Permalink
Move searchParams
Browse files Browse the repository at this point in the history
  • Loading branch information
silamon committed Dec 7, 2023
1 parent 13debc9 commit c843762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/panels/todo/ha-panel-todo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ class PanelTodo extends LitElement {
this.hass.loadFragmentTranslation("lovelace");
}

const searchParams = new URLSearchParams(location.search);
if (!this.hasUpdated) {
const searchParams = new URLSearchParams(location.search);
if (searchParams.has("entity_id")) {
this._entityId = searchParams.get("entity_id")!;
} else if (!this._entityId) {
Expand Down

0 comments on commit c843762

Please sign in to comment.