diff --git a/web/app/components/workflow-app/hooks/use-fetch-workflow-inspect-vars.ts b/web/app/components/workflow-app/hooks/use-fetch-workflow-inspect-vars.ts index 922b1051b2..334f847bf6 100644 --- a/web/app/components/workflow-app/hooks/use-fetch-workflow-inspect-vars.ts +++ b/web/app/components/workflow-app/hooks/use-fetch-workflow-inspect-vars.ts @@ -12,11 +12,10 @@ const useSetWorkflowVarsWithValue = () => { const invalidateConversationVarValues = useInvalidateConversationVarValues(appId) const invalidateSysVarValues = useInvalidateSysVarValues(appId) - const addNodeInfo = (inspectVars: VarInInspect[]) => { + const setInspectVarsToStore = (inspectVars: VarInInspect[]) => { const { getNodes } = store.getState() const nodeArr = getNodes() const nodesKeyValue: Record = {} - // TODO: handle conversation, env and system variables nodeArr.forEach((node) => { nodesKeyValue[node.id] = node }) @@ -54,7 +53,7 @@ const useSetWorkflowVarsWithValue = () => { invalidateConversationVarValues() invalidateSysVarValues() const data = await fetchAllInspectVars(appId) - addNodeInfo(data) + setInspectVarsToStore(data) } return { fetchInspectVars,