File tree Expand file tree Collapse file tree
packages/vue-node-registry/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,16 +90,17 @@ export class VueNodeView extends HtmlNode {
9090 const nodeConfig = getVueNodeConfig ( model . type , graphModel )
9191 if ( ! nodeConfig ) {
9292 // No registered config for this node type; ensure any existing Teleport mount is cleaned up
93- if ( isVue3 && isActive ( ) ) {
94- disconnect ( this . targetId ( ) , this . props . graphModel . flowId as string )
93+ const flowId = this . props . graphModel . flowId
94+ if ( isVue3 && isActive ( ) && flowId ) {
95+ disconnect ( this . targetId ( ) , flowId )
9596 }
9697 return
9798 }
98- const { component } = nodeConfig
9999 if ( ! component ) {
100100 // Config exists but has no component; also clean up any existing Teleport mount
101- if ( isVue3 && isActive ( ) ) {
102- disconnect ( this . targetId ( ) , this . props . graphModel . flowId as string )
101+ const flowId = this . props . graphModel . flowId
102+ if ( isVue3 && isActive ( ) && flowId ) {
103+ disconnect ( this . targetId ( ) , flowId )
103104 }
104105 return
105106 }
You can’t perform that action at this time.
0 commit comments