diff --git a/packages/core/src/components/ConnectionLine/index.ts b/packages/core/src/components/ConnectionLine/index.ts index 24b4fe3c..14de63ff 100644 --- a/packages/core/src/components/ConnectionLine/index.ts +++ b/packages/core/src/components/ConnectionLine/index.ts @@ -1,4 +1,6 @@ +import type { Component } from 'vue' import { defineComponent, h, inject } from 'vue' +import type { ConnectionLineProps } from '~/types' import { ConnectionLineType, ConnectionMode, Position } from '~/types' import { getMarkerId } from '~/utils' import { useVueFlow } from '~/composables' @@ -29,7 +31,7 @@ const ConnectionLine = defineComponent({ findNode, } = useVueFlow() - const connectionLineComponent = inject(Slots)?.['connection-line'] + const connectionLineComponent = inject(Slots)?.['connection-line'] as Component | undefined return () => { if (!connectionStartHandle.value) { diff --git a/packages/core/src/components/Edges/EdgeWrapper.ts b/packages/core/src/components/Edges/EdgeWrapper.ts index 480cd38c..c8a208a6 100644 --- a/packages/core/src/components/Edges/EdgeWrapper.ts +++ b/packages/core/src/components/Edges/EdgeWrapper.ts @@ -177,7 +177,6 @@ const EdgeWrapper = defineComponent({ targetHandleId: edge.targetHandle, interactionWidth: edge.interactionWidth, }), - [ props.updatable === 'source' || props.updatable === true ? [ diff --git a/packages/core/src/types/connection.ts b/packages/core/src/types/connection.ts index f9117460..a749ef48 100644 --- a/packages/core/src/types/connection.ts +++ b/packages/core/src/types/connection.ts @@ -81,5 +81,5 @@ export interface ConnectionLineProps { /** marker url */ markerEnd: string /** status of the connection (valid, invalid) */ - connectionStatus: ConnectionStatus + connectionStatus: ConnectionStatus | null }