Revert "Use backup physical_id for progress updates matching" (#5060)

* Revert "Use backup physical_id for progress updates matching"

This reverts commit de2f6275b97376fb92497399eba848ae1ace7b01.

* Fix page crash on backups page reload
This commit is contained in:
François-Xavier Talbot
2026-01-07 17:28:57 -05:00
committed by GitHub
parent 3fd6ce1b6d
commit 14d227a1a3
6 changed files with 17 additions and 23 deletions

View File

@@ -87,7 +87,7 @@ const restoreBackup = () => {
restoreMutation.mutate(currentBackup.value.id, {
onSuccess: () => {
// Optimistically update backupsState to show restore in progress immediately
ctx.backupsState.set(currentBackup.value!.physical_id ?? currentBackup.value!.id, {
ctx.backupsState.set(currentBackup.value!.id, {
restore: { progress: 0, state: 'ongoing' },
})
modal.value?.hide()