Renée Kooi 6 년 전
부모
커밋
db49bfbec2
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      packages/@uppy/transloadit/src/index.js

+ 2 - 0
packages/@uppy/transloadit/src/index.js

@@ -71,6 +71,8 @@ module.exports = class Transloadit extends Plugin {
     if (this.opts.params) {
       AssemblyOptions.validateParams(this.opts.params)
     } else if (!hasCustomAssemblyOptions) {
+      // Throw the same error that we'd throw if the `params` returned from a
+      // `getAssemblyOptions()` function is null.
       AssemblyOptions.validateParams(null)
     }