mirror of https://github.com/langgenius/dify.git
refactor: remove unused state management in usePipelineRun hook
This commit is contained in:
parent
048feb4165
commit
9a13cb5bdf
|
|
@ -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…
Reference in New Issue