Sfoglia il codice sorgente

refactor: remove unused state management in usePipelineRun hook

tags/2.0.0-beta.1
twwu 2 mesi fa
parent
commit
9a13cb5bdf

+ 1
- 2
web/app/components/rag-pipeline/hooks/use-pipeline-run.ts Vedi File

@@ -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) => {

Loading…
Annulla
Salva