|
@@ -67,10 +67,11 @@ module.exports = class Transloadit extends Plugin {
|
|
|
this._onRestored = this._onRestored.bind(this)
|
|
|
this._getPersistentData = this._getPersistentData.bind(this)
|
|
|
|
|
|
- if (this.opts.params ||
|
|
|
-
|
|
|
- this.opts.getAssemblyOptions === defaultOptions.getAssemblyOptions) {
|
|
|
+ const hasCustomAssemblyOptions = this.opts.getAssemblyOptions !== defaultOptions.getAssemblyOptions
|
|
|
+ if (this.opts.params) {
|
|
|
AssemblyOptions.validateParams(this.opts.params)
|
|
|
+ } else if (!hasCustomAssemblyOptions) {
|
|
|
+ AssemblyOptions.validateParams(null)
|
|
|
}
|
|
|
|
|
|
this.client = new Client({
|