瀏覽代碼

parent dialog: fix parent name field

Martin Kunz 1 年之前
父節點
當前提交
45bebd93a0
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/components/TheParent.vue

+ 2 - 0
src/components/TheParent.vue

@@ -21,6 +21,8 @@ function clickNode(clickedNode: UABaseNode) {
 
 watch(node, async (newNode, _oldNode) => {
   selectedRefType.value=newNode?.getParentRef()?.referenceType||"";
+  selectedParent.value=newNode?.getParent()||UABaseNode.nullBaseNode;
+
 })
 
 function okPressed() {