fix: variable-assigner node connect (#3288)

This commit is contained in:
zxhlyh
2024-04-10 13:49:21 +08:00
committed by GitHub
parent 89a853212b
commit 240c793e7a
3 changed files with 17 additions and 5 deletions

View File

@@ -6,6 +6,7 @@ import produce from 'immer'
import RemoveButton from '../../../_base/components/remove-button'
import VarReferencePicker from '@/app/components/workflow/nodes/_base/components/variable/var-reference-picker'
import type { ValueSelector, Var } from '@/app/components/workflow/types'
import { VarType as VarKindType } from '@/app/components/workflow/nodes/tool/types'
type Props = {
readonly: boolean
@@ -71,6 +72,7 @@ const VarList: FC<Props> = ({
onOpen={handleOpen(index)}
onlyLeafNodeVar={onlyLeafNodeVar}
filterVar={filterVar}
defaultVarKindType={VarKindType.variable}
/>
{!readonly && (
<RemoveButton