mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 16:25:21 +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]);
|
||||
|
||||
Object.keys(this._props).forEach(prop => {
|
||||
if (passFile[prop] instanceof Array) {
|
||||
if (passFile[prop] && passFile[prop] instanceof Array) {
|
||||
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]);
|
||||
} else {
|
||||
passFile[prop] = this._props[prop];
|
||||
|
||||
Reference in New Issue
Block a user