fix hierarchy view not opening the correct modal

This commit is contained in:
kevmodrome 2020-04-09 10:22:02 +02:00
parent eb0298420e
commit 4e48fc60a5
1 changed files with 3 additions and 1 deletions

View File

@ -29,8 +29,10 @@
function selectHierarchyItem(node) { function selectHierarchyItem(node) {
store.selectExistingNode(node.nodeId) store.selectExistingNode(node.nodeId)
const modalType =
node.type === "index" ? CreateEditViewModal : CreateEditModelModal
open( open(
CreateEditViewModal, modalType,
{ {
onClosed: close, onClosed: close,
}, },