Skip to content

Commit efdb326

Browse files
seobyeongkye2l3n
authored andcommitted
XCBuildConfiguration array field replace ok
1 parent 91c9791 commit efdb326

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pbxProject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ function propReplace(obj, prop, value) {
678678
for (var p in obj) {
679679
// this is needed because the object could have been created with Object.create(null)
680680
if (Object.prototype.hasOwnProperty.call(obj, p)) {
681-
if (typeof obj[p] == 'object') {
681+
if (typeof obj[p] == 'object' && !Array.isArray(obj[p])) {
682682
propReplace(obj[p], prop, value);
683683
} else if (p == prop) {
684684
obj[p] = value;

0 commit comments

Comments
 (0)