mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 12:37:20 +08:00
fix: can not chosse const
This commit is contained in:
parent
d5cf64f289
commit
29d29f8731
@ -170,7 +170,8 @@ const InputVarList: FC<Props> = ({
|
|||||||
value={varInput?.type === VarKindType.constant ? (varInput?.value || '') : (varInput?.value || [])}
|
value={varInput?.type === VarKindType.constant ? (varInput?.value || '') : (varInput?.value || [])}
|
||||||
onChange={handleNotMixedTypeChange(variable)}
|
onChange={handleNotMixedTypeChange(variable)}
|
||||||
onOpen={handleOpen(index)}
|
onOpen={handleOpen(index)}
|
||||||
defaultVarKindType={VarKindType.variable}
|
defaultVarKindType={isNumber ? VarKindType.constant : VarKindType.variable}
|
||||||
|
isSupportConstantValue={isSupportConstantValue}
|
||||||
filterVar={isNumber ? filterVar : undefined}
|
filterVar={isNumber ? filterVar : undefined}
|
||||||
availableVars={isSelect ? availableVars : undefined}
|
availableVars={isSelect ? availableVars : undefined}
|
||||||
schema={schema}
|
schema={schema}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user