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

Commit

Permalink
Merge pull request #31 from das-peter/patch-1
Browse files Browse the repository at this point in the history
Support data references in render tag.
  • Loading branch information
mihkeleidast authored Dec 5, 2019
2 parents 91bc020 + 114918e commit 49ca159
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 @@ -53,7 +53,7 @@ module.exports = function (fractal) {
throw new Error(`Could not render component '${handle}' - component not found.`);
}

let innerContext = entity.isComponent ? entity.variants().default().context : entity.context;
let innerContext = entity.isComponent ? entity.variants().default().getContext() : entity.getContext();

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

0 comments on commit 49ca159

Please sign in to comment.