mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
refactor(web): migrate workflow run history from useSWR to TanStack Query (#30077)
This commit is contained in:
@ -8,7 +8,6 @@ import Header from '@/app/components/workflow/header'
|
||||
import {
|
||||
useStore,
|
||||
} from '@/app/components/workflow/store'
|
||||
import { fetchWorkflowRunHistory } from '@/service/workflow'
|
||||
import InputFieldButton from './input-field-button'
|
||||
import Publisher from './publisher'
|
||||
import RunMode from './run-mode'
|
||||
@ -21,7 +20,6 @@ const RagPipelineHeader = () => {
|
||||
const viewHistoryProps = useMemo(() => {
|
||||
return {
|
||||
historyUrl: `/rag/pipelines/${pipelineId}/workflow-runs`,
|
||||
historyFetcher: fetchWorkflowRunHistory,
|
||||
}
|
||||
}, [pipelineId])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user