diff --git a/web/app/components/workflow/nodes/_base/hooks/use-one-step-run.ts b/web/app/components/workflow/nodes/_base/hooks/use-one-step-run.ts index 58f093403c..fc377ed28e 100644 --- a/web/app/components/workflow/nodes/_base/hooks/use-one-step-run.ts +++ b/web/app/components/workflow/nodes/_base/hooks/use-one-step-run.ts @@ -70,7 +70,7 @@ import { } from '@/service/use-tools' // eslint-disable-next-line ts/no-unsafe-function-type -const checkValidFns: Record = { +const checkValidFns: Partial> = { [BlockEnum.LLM]: checkLLMValid, [BlockEnum.KnowledgeRetrieval]: checkKnowledgeRetrievalValid, [BlockEnum.IfElse]: checkIfElseValid, @@ -631,7 +631,7 @@ const useOneStepRun = ({ }) Toast.notify({ type: 'error', - message: res.errorMessage, + message: res.errorMessage || '', }) } return res