소스 검색

@uppy/transloadit: also fix outdated assembly transloadit:result (#5246)

Co-authored-by: Marius Kleidl <marius@transloadit.com>
Merlijn Vos 10 달 전
부모
커밋
5695299a19
1개의 변경된 파일2개의 추가작업 그리고 6개의 파일을 삭제
  1. 2 6
      packages/@uppy/transloadit/src/index.ts

+ 2 - 6
packages/@uppy/transloadit/src/index.ts

@@ -682,12 +682,8 @@ export default class Transloadit<
     this.setPluginState({
       results: [...state.results, entry],
     })
-    this.uppy.emit(
-      'transloadit:result',
-      stepName,
-      result,
-      this.getAssembly(assemblyId),
-    )
+    const assembly = this.activeAssemblies[assemblyId].status
+    this.uppy.emit('transloadit:result', stepName, result, assembly)
   }
 
   /**