From 9a13cb5bdf523376eb443ca3a8b473c3343e03f7 Mon Sep 17 00:00:00 2001 From: twwu Date: Thu, 28 Aug 2025 13:58:03 +0800 Subject: [PATCH] refactor: remove unused state management in usePipelineRun hook --- web/app/components/rag-pipeline/hooks/use-pipeline-run.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 11031b0a56..4ed8cb95c7 100644 --- a/web/app/components/rag-pipeline/hooks/use-pipeline-run.ts +++ b/web/app/components/rag-pipeline/hooks/use-pipeline-run.ts @@ -287,10 +287,9 @@ export const usePipelineRun = () => { ) const handleStopRun = useCallback((taskId: string) => { - const { pipelineId, setShowDebugAndPreviewPanel } = workflowStore.getState() + const { pipelineId } = workflowStore.getState() stopWorkflowRun(`/rag/pipeline/${pipelineId}/workflow-runs/tasks/${taskId}/stop`) - setShowDebugAndPreviewPanel(false) }, [workflowStore]) const handleRestoreFromPublishedWorkflow = useCallback((publishedWorkflow: VersionHistory) => {