Skip to content

Commit

Permalink
Fix the obj reference (#5749)
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriziovitale committed Jun 3, 2020
1 parent 6890dea commit d667c93
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/extensions/src/lib/services/extension.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit d667c93

Please sign in to comment.