From 106a27a3d8a3e0caeb02df81b116bcd386ecc762 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Mon, 23 Dec 2024 11:19:27 +0100 Subject: [PATCH] unselect when deleting --- src/panels/config/backup/ha-config-backup-backups.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/panels/config/backup/ha-config-backup-backups.ts b/src/panels/config/backup/ha-config-backup-backups.ts index dd203ef97905..62203b7e0114 100644 --- a/src/panels/config/backup/ha-config-backup-backups.ts +++ b/src/panels/config/backup/ha-config-backup-backups.ts @@ -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"); }