diff --git a/web/app/components/workflow/hooks/use-checklist.ts b/web/app/components/workflow/hooks/use-checklist.ts index 35ff86044d..b02f6bc8e8 100644 --- a/web/app/components/workflow/hooks/use-checklist.ts +++ b/web/app/components/workflow/hooks/use-checklist.ts @@ -113,7 +113,7 @@ export const useChecklist = (nodes: Node[], edges: Edge[]) => { if (!errorMessage) { const availableVars = map[node.id].availableVars - usedVars.forEach((variable) => { + for (const variable of usedVars) { const isEnv = isENV(variable) const isConvVar = isConversationVar(variable) const isSysVar = isSystemVar(variable)