fix hierarchy view not opening the correct modal
This commit is contained in:
parent
eb0298420e
commit
4e48fc60a5
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue