Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32204422
D14938.1765115888.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D14938.1765115888.diff
View Options
diff --git a/lib/backup/use-user-data-restore.js b/lib/backup/use-user-data-restore.js
--- a/lib/backup/use-user-data-restore.js
+++ b/lib/backup/use-user-data-restore.js
@@ -106,7 +106,10 @@
restoreBackupState.payload.step,
);
startStepIndex = completedStepIndex + 1;
- } else if (restoreBackupState.status === 'user_data_restore_started') {
+ } else if (
+ restoreBackupState.status === 'user_data_restore_started' ||
+ restoreBackupState.status === 'user_data_restore_failed'
+ ) {
startStepIndex = stepOrder.indexOf(restoreBackupState.payload.step);
} else {
// for any other state, start from scratch
diff --git a/lib/reducers/backup-reducer.js b/lib/reducers/backup-reducer.js
--- a/lib/reducers/backup-reducer.js
+++ b/lib/reducers/backup-reducer.js
@@ -157,7 +157,10 @@
currentStepIndex === lastCompletedStepIndex + 1,
`Invalid step order: trying to start '${step}' but last completed step was '${store.payload.step}'`,
);
- } else if (store.status === 'user_data_restore_started') {
+ } else if (
+ store.status === 'user_data_restore_started' ||
+ store.status === 'user_data_restore_failed'
+ ) {
invariant(
currentStepIndex === stepOrder.indexOf(store.payload.step),
`Invalid step: trying to restart '${step}' but current step is '${store.payload.step}'`,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 7, 1:58 PM (10 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5842554
Default Alt Text
D14938.1765115888.diff (1 KB)
Attached To
Mode
D14938: [lib] fix handling `user_data_restore_failed` action
Attached
Detach File
Event Timeline
Log In to Comment