diff --git a/packages/common/src/util.js b/packages/common/src/util.js index cd4afe02b9f..2411e80c69e 100644 --- a/packages/common/src/util.js +++ b/packages/common/src/util.js @@ -518,7 +518,9 @@ function replaceProjectIdToken(value, projectId) { if (is.object(value)) { for (var opt in value) { - value[opt] = replaceProjectIdToken(value[opt], projectId); + if (value.hasOwnProperty(opt)) { + value[opt] = replaceProjectIdToken(value[opt], projectId); + } } }