Fix type-check error (#27051)

This commit is contained in:
GuanMu
2025-10-18 12:03:40 +08:00
committed by GitHub
parent 830f891a74
commit 1a37989769
8 changed files with 27 additions and 18 deletions

View File

@@ -16,7 +16,7 @@ import {
useReactFlow,
useStoreApi,
} from 'reactflow'
import type { ToolDefaultValue } from '../block-selector/types'
import type { DataSourceDefaultValue, ToolDefaultValue } from '../block-selector/types'
import type { Edge, Node, OnNodeAdd } from '../types'
import { BlockEnum } from '../types'
import { useWorkflowStore } from '../store'
@@ -1286,7 +1286,7 @@ export const useNodesInteractions = () => {
currentNodeId: string,
nodeType: BlockEnum,
sourceHandle: string,
toolDefaultValue?: ToolDefaultValue,
toolDefaultValue?: ToolDefaultValue | DataSourceDefaultValue,
) => {
if (getNodesReadOnly()) return