Skip to content

Commit

Permalink
unselect when deleting
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten committed Dec 23, 2024
1 parent 96a4757 commit 106a27a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/panels/config/backup/ha-config-backup-backups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,9 @@ class HaConfigBackupBackups extends SubscribeMixin(LitElement) {
}

await deleteBackup(this.hass, backup.backup_id);
if (this._selected.includes(backup.backup_id)) {
this._selected = this._selected.filter((id) => id !== backup.backup_id);
}
fireEvent(this, "ha-refresh-backup-info");
}

Expand Down

0 comments on commit 106a27a

Please sign in to comment.