feat: can run code node

This commit is contained in:
Joel
2024-03-12 17:58:51 +08:00
parent a5147a382d
commit 30ea3cb702
6 changed files with 81 additions and 35 deletions

View File

@ -27,7 +27,7 @@ const useConfig = (id: string, payload: CodeNodeType) => {
setInputs(newInputs)
}, [inputs, setInputs])
const { handleVarListChange: handleOutputVarListChange, handleAddVariable: handleAddOutputVariable } = useOutputVarList<CodeNodeType>({
const { handleVarsChange, handleAddVariable: handleAddOutputVariable } = useOutputVarList<CodeNodeType>({
inputs,
setInputs,
})
@ -68,7 +68,7 @@ const useConfig = (id: string, payload: CodeNodeType) => {
handleAddVariable,
handleCodeChange,
handleCodeLanguageChange,
handleOutputVarListChange,
handleVarsChange,
handleAddOutputVariable,
// single run
isShowSingleRun,