Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: fix trigger output schema miss (#32116)

wangxiaolei56e3a55023ad
diff --git a/web/service/workflow.ts b/web/service/workflow.ts
index 3a37db791b9..7571e804a9f 100644
--- a/web/service/workflow.ts
+++ b/web/service/workflow.ts
@@ -9,7 +9,6 @@ import type {
} from '@/types/workflow'
import { get, post } from './base'
import { getFlowPrefix } from './utils'
-import { sanitizeWorkflowDraftPayload } from './workflow-payload'
export const fetchWorkflowDraft = (url: string) => {
return get(url, {}, { silent: true }) as Promise<FetchWorkflowDraftResponse>
@@ -19,8 +18,7 @@ export const syncWorkflowDraft = ({ url, params }: {
url: string
params: Pick<FetchWorkflowDraftResponse, 'graph' | 'features' | 'environment_variables' | 'conversation_variables'>
}) => {
- const sanitized = sanitizeWorkflowDraftPayload(params)
- return post<CommonResponse & { updated_at: number, hash: string }>(url, { body: sanitized }, { silent: true })
+ return post<CommonResponse & { updated_at: number, hash: string }>(url, { body: params }, { silent: true })
}
export const fetchNodesDefaultConfigs = (url: string) => {