From 4e48fc60a56dfd28e6f9fd6163cfc2459792cb25 Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Thu, 9 Apr 2020 10:22:02 +0200 Subject: [PATCH] fix hierarchy view not opening the correct modal --- packages/builder/src/components/nav/HierarchyRow.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/components/nav/HierarchyRow.svelte b/packages/builder/src/components/nav/HierarchyRow.svelte index 3c76c5d4b4..11f9172e63 100644 --- a/packages/builder/src/components/nav/HierarchyRow.svelte +++ b/packages/builder/src/components/nav/HierarchyRow.svelte @@ -29,8 +29,10 @@ function selectHierarchyItem(node) { store.selectExistingNode(node.nodeId) + const modalType = + node.type === "index" ? CreateEditViewModal : CreateEditModelModal open( - CreateEditViewModal, + modalType, { onClosed: close, },