Skip to content

Commit 0dfdfff

Browse files
author
wuxuelan
committed
fix: review question
1 parent fd790c9 commit 0dfdfff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/vue-node-registry/src

packages/vue-node-registry/src/view.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,17 @@ export class VueNodeView extends HtmlNode {
8888

8989
if (root) {
9090
const nodeConfig = getVueNodeConfig(model.type, graphModel)
91+
const flowId = this.props.graphModel.flowId
9192
if (!nodeConfig) {
9293
// No registered config for this node type; ensure any existing Teleport mount is cleaned up
93-
const flowId = this.props.graphModel.flowId
9494
if (isVue3 && isActive() && flowId) {
9595
disconnect(this.targetId(), flowId)
9696
}
9797
return
9898
}
99+
const { component } = nodeConfig
99100
if (!component) {
100101
// Config exists but has no component; also clean up any existing Teleport mount
101-
const flowId = this.props.graphModel.flowId
102102
if (isVue3 && isActive() && flowId) {
103103
disconnect(this.targetId(), flowId)
104104
}

0 commit comments

Comments
 (0)