Skip to content

Commit

Permalink
Include image data for person component context (#177)
Browse files Browse the repository at this point in the history
While this change forwards any image data for a person component,
custom templates referencing things from the person context do not
appear to render as expected. This might be to do with the
`renderTemplate` helper inside `MgtTemplatedComponent`.
  • Loading branch information
miqh authored and nmetulev committed Oct 13, 2019
1 parent 3f7814c commit af7a240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/mgt-person/mgt-person.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export class MgtPerson extends MgtTemplatedComponent {
*/
public render() {
const person =
this.renderTemplate('default', { person: this.personDetails }) ||
this.renderTemplate('default', { person: this.personDetails, personImage: this.personImage }) ||
html`
<div class="person-root">
${this.renderImage()} ${this.renderDetails()}
Expand Down

0 comments on commit af7a240

Please sign in to comment.