Skip to content

Commit

Permalink
Fix double unsubscribe in todo list card (#20928)
Browse files Browse the repository at this point in the history
  • Loading branch information
karwosts authored May 30, 2024
1 parent 6f1fa13 commit 7416ae7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/panels/lovelace/cards/hui-todo-list-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export class HuiTodoListCard extends LitElement implements LovelaceCard {
disconnectedCallback(): void {
super.disconnectedCallback();
this._unsubItems?.then((unsub) => unsub());
this._unsubItems = undefined;
}

public getCardSize(): number {
Expand Down

0 comments on commit 7416ae7

Please sign in to comment.