Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
use _.merge instead of _.assign for deep objects
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelbirch authored Jan 2, 2020
1 parent fa755f9 commit 4924534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tags/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ module.exports = function (fractal) {
let innerContext = entity.isComponent ? entity.variants().default().getContext() : entity.getContext();

if (token.contextStack !== undefined) {
_.assign(innerContext, Twig.expression.parse.apply(this, [token.contextStack, context]));
_.merge(innerContext, Twig.expression.parse.apply(this, [token.contextStack, context]));
}

let template;
Expand Down

0 comments on commit 4924534

Please sign in to comment.