File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -359,12 +359,12 @@ const performWidgetsRestore = async (): Promise<
359359 const backup = backupRes . value . data ;
360360 const expectedBackupShape = initialWidgetsState ;
361361
362+ // Skip restore if backup contains legacy slashfeed widgets
362363 // NOTE: can be removed after all users have updated from 1.0.9
363- const hasSlashfeedWidgets = Object . keys ( backup . widgets ) . some ( ( key ) => {
364- return key . includes ( 'slashfeed' ) ;
365- } ) ;
364+ const hasSlashfeedWidgets =
365+ Object . keys ( backup . widgets ) . some ( ( key ) => key . includes ( 'slashfeed' ) ) ||
366+ backup . sortOrder . some ( ( key ) => key . includes ( 'slashfeed' ) ) ;
366367
367- // If the backup has slashfeed widgets, skip the restore.
368368 if ( hasSlashfeedWidgets ) {
369369 return ok ( { backupExists : false } ) ;
370370 }
You can’t perform that action at this time.
0 commit comments