From c2908eb4d6f726d4ae1eb3c3dc45865964b917a3 Mon Sep 17 00:00:00 2001 From: Patrik Kullman Date: Sun, 12 Apr 2020 08:05:02 +0200 Subject: [PATCH] fix: _getInstance and selectedInstance old logic Doesn't seem to have worked since we moved the incomplete template into the component. --- cosmoz-data-nav.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cosmoz-data-nav.js b/cosmoz-data-nav.js index 3798ff0..65206e9 100644 --- a/cosmoz-data-nav.js +++ b/cosmoz-data-nav.js @@ -757,11 +757,11 @@ class CosmozDataNav extends translatable(mixinBehaviors([IronResizableBehavior], } _getInstance(selectedElement) { - if (selectedElement == null || selectedElement.children.length < 2) { + if (selectedElement == null) { return; } // index 0 is incomplete element - return selectedElement.children[1]; + return selectedElement.children[0]; } _getItem(index, items = this.items) {