Просмотр исходного кода

restore: Also restore if there are uploads without files.

Renée Kooi 7 лет назад
Родитель
Сommit
7171901b38
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      src/plugins/GoldenRetriever/index.js

+ 3 - 0
src/plugins/GoldenRetriever/index.js

@@ -205,6 +205,9 @@ module.exports = class GoldenRetriever extends Plugin {
         this.uppy.log('Attempting to load files from Indexed DB...')
         this.uppy.log('Attempting to load files from Indexed DB...')
         this.loadFileBlobsFromIndexedDB()
         this.loadFileBlobsFromIndexedDB()
       }
       }
+    } else {
+      this.core.log('No files need to be loaded, only restoring processing state...')
+      this.onBlobsLoaded([])
     }
     }
 
 
     this.uppy.on('file-added', (file) => {
     this.uppy.on('file-added', (file) => {