mirror of
https://github.com/langgenius/dify.git
synced 2026-03-30 18:40:17 +08:00
feat: template transform
This commit is contained in:
@ -43,22 +43,13 @@ const useConfig = (id: string, payload: CodeNodeType) => {
|
||||
handleStop,
|
||||
runInputData,
|
||||
setRunInputData,
|
||||
runResult: unformattedRunResult,
|
||||
runResult,
|
||||
} = useOneStepRun<CodeNodeType>({
|
||||
id,
|
||||
data: inputs,
|
||||
defaultRunInputData: {},
|
||||
})
|
||||
|
||||
const runResult = (() => {
|
||||
if (!unformattedRunResult)
|
||||
return {}
|
||||
|
||||
return {
|
||||
...unformattedRunResult,
|
||||
created_by: unformattedRunResult.created_by_account?.name || '',
|
||||
}
|
||||
})()
|
||||
const varInputs = toVarInputs(inputs.variables)
|
||||
|
||||
const inputVarValues = (() => {
|
||||
|
||||
Reference in New Issue
Block a user