Fix the obj reference (#5749)

This commit is contained in:
Maurizio Vitale
2020-06-03 14:32:00 +01:00
committed by GitHub
parent 6890dea819
commit d667c93ff3

View File

@@ -202,10 +202,11 @@ export class ExtensionService {
if (typeof value === 'string' ) {
return this.evaluateExpression(value, context);
} else {
Object.keys(value).forEach( (key) => {
value[key] = this.evaluateExpression(value[key], context);
const duplicate = Object.assign({}, value);
Object.keys(duplicate).forEach( (key) => {
duplicate[key] = this.evaluateExpression(duplicate[key], context);
});
return value;
return duplicate;
}
}