mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 23:25:26 +00:00
Changed pass.json props patching
This commit is contained in:
@@ -517,9 +517,9 @@ export class Pass implements PassIndexSignature {
|
|||||||
.forEach(v => delete this._props[v]);
|
.forEach(v => delete this._props[v]);
|
||||||
|
|
||||||
Object.keys(this._props).forEach(prop => {
|
Object.keys(this._props).forEach(prop => {
|
||||||
if (passFile[prop] instanceof Array) {
|
if (passFile[prop] && passFile[prop] instanceof Array) {
|
||||||
passFile[prop].push(...this._props[prop]);
|
passFile[prop].push(...this._props[prop]);
|
||||||
} else if (passFile[prop] instanceof Object) {
|
} else if (passFile[prop] && passFile[prop] instanceof Object) {
|
||||||
Object.assign(passFile[prop], this._props[prop]);
|
Object.assign(passFile[prop], this._props[prop]);
|
||||||
} else {
|
} else {
|
||||||
passFile[prop] = this._props[prop];
|
passFile[prop] = this._props[prop];
|
||||||
|
|||||||
Reference in New Issue
Block a user