Skip to content

Commit

Permalink
fix(selected-instance): is always the incomplete template
Browse files Browse the repository at this point in the history
  • Loading branch information
cristinecula authored and JockeCK committed Jun 11, 2020
1 parent b2f68b7 commit b570511
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cosmoz-data-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,8 @@ class CosmozDataNav extends translatable(mixinBehaviors([IronResizableBehavior],
if (selectedElement == null) {
return;
}
return selectedElement.children[0];
// return reference to the rendered template instance or the incomplete template if missing
return selectedElement.children[1] || selectedElement.children[0];
}

_getItem(index, items = this.items) {
Expand Down

0 comments on commit b570511

Please sign in to comment.