Skip to content

Commit

Permalink
fix: revert condition
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismclarke committed Dec 20, 2024
1 parent 8453ffc commit 9026a2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/shared/components/template/template-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class TemplateComponent implements OnInit, AfterContentInit, ITemplateRow
// reflected in the child template (e.g. set_nested_variable contains parent local variable)
// As it is not currently easy to isolate this case, fully recreate any child template when
// the parent template updates
if (componentRef.instance.templatename() !== this._row.value) {
if (componentRef.instance.templatename()) {
this.componentRef.destroy();
this.renderTemplateComponent(this._row);
// TODO - test better ways to manage from container, confirming test cases from
Expand Down

0 comments on commit 9026a2a

Please sign in to comment.