Improved passFile props assignment

This commit is contained in:
Alexander Cerutti
2019-06-30 23:28:06 +02:00
parent 8b6f1ba948
commit 60f9e8320b

View File

@@ -539,7 +539,7 @@ export class Pass {
.filter(v => this[passProps][v] && !isValidRGB(this[passProps][v])) .filter(v => this[passProps][v] && !isValidRGB(this[passProps][v]))
.forEach(v => delete this[passProps][v]); .forEach(v => delete this[passProps][v]);
passFile = { ...passFile, ...this[passProps] }; Object.assign(passFile, this[passProps]);
} }
this._fields.forEach(field => { this._fields.forEach(field => {