mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 09:28:04 +08:00
feat: code support output var list
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
import { useCallback } from 'react'
|
||||
import produce from 'immer'
|
||||
import { type OutputVar, OutputVarType } from '../../code/types'
|
||||
import { type OutputVar } from '../../code/types'
|
||||
import { VarType } from '@/app/components/workflow/types'
|
||||
|
||||
type Params<T> = {
|
||||
inputs: T
|
||||
setInputs: (newInputs: T) => void
|
||||
@ -23,7 +25,7 @@ function useOutputVarList<T>({
|
||||
draft[varKey] = {
|
||||
...draft[varKey],
|
||||
[`var-${Object.keys(draft[varKey]).length + 1}`]: {
|
||||
type: OutputVarType.string,
|
||||
type: VarType.string,
|
||||
children: null,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user