diff --git a/web/app/components/rag-pipeline/hooks/use-pipeline-run.ts b/web/app/components/rag-pipeline/hooks/use-pipeline-run.ts index 572eda2ba7..6c15b42409 100644 --- a/web/app/components/rag-pipeline/hooks/use-pipeline-run.ts +++ b/web/app/components/rag-pipeline/hooks/use-pipeline-run.ts @@ -165,7 +165,7 @@ export const usePipelineRun = () => { }, onWorkflowFinished: (params) => { handleWorkflowFinished(params) - fetchInspectVars() + fetchInspectVars({}) invalidAllLastRun() if (onWorkflowFinished) diff --git a/web/app/components/workflow-app/hooks/use-workflow-run.ts b/web/app/components/workflow-app/hooks/use-workflow-run.ts index 15a4857ee6..72dc7fea2f 100644 --- a/web/app/components/workflow-app/hooks/use-workflow-run.ts +++ b/web/app/components/workflow-app/hooks/use-workflow-run.ts @@ -202,7 +202,7 @@ export const useWorkflowRun = () => { if (onWorkflowFinished) onWorkflowFinished(params) if (isInWorkflowDebug) { - fetchInspectVars() + fetchInspectVars({}) invalidAllLastRun() } }, diff --git a/web/app/components/workflow/hooks/use-fetch-workflow-inspect-vars.ts b/web/app/components/workflow/hooks/use-fetch-workflow-inspect-vars.ts index 8e9f0c267d..1527fb82e2 100644 --- a/web/app/components/workflow/hooks/use-fetch-workflow-inspect-vars.ts +++ b/web/app/components/workflow/hooks/use-fetch-workflow-inspect-vars.ts @@ -93,11 +93,11 @@ export const useSetWorkflowVarsWithValue = ({ } const fetchInspectVars = useCallback(async (params: { - passInVars?: boolean, - vars?: VarInInspect[], - passedInAllPluginInfoList?: Record, - passedInSchemaTypeDefinitions?: SchemaTypeDefinition[] - }) => { + passInVars?: boolean, + vars?: VarInInspect[], + passedInAllPluginInfoList?: Record, + passedInSchemaTypeDefinitions?: SchemaTypeDefinition[] + }) => { const { passInVars, vars, passedInAllPluginInfoList, passedInSchemaTypeDefinitions } = params invalidateConversationVarValues() invalidateSysVarValues() diff --git a/web/app/components/workflow/panel/debug-and-preview/hooks.ts b/web/app/components/workflow/panel/debug-and-preview/hooks.ts index cbdbf4f959..4cc6e92ace 100644 --- a/web/app/components/workflow/panel/debug-and-preview/hooks.ts +++ b/web/app/components/workflow/panel/debug-and-preview/hooks.ts @@ -296,7 +296,7 @@ export const useChat = ( }, async onCompleted(hasError?: boolean, errorMessage?: string) { handleResponding(false) - fetchInspectVars() + fetchInspectVars({}) invalidAllLastRun() if (hasError) {