mirror of https://github.com/langgenius/dify.git
fix(workflow): change description field to be required in TriggerPluginNodePayload
This commit is contained in:
parent
e7192de9c0
commit
1604db02b5
|
|
@ -4,7 +4,7 @@ import type { FetchWorkflowDraftResponse } from '@/types/workflow'
|
|||
|
||||
export type TriggerPluginNodePayload = {
|
||||
title: string
|
||||
desc?: string
|
||||
desc: string
|
||||
plugin_id: string
|
||||
provider_id: string
|
||||
event_name: string
|
||||
|
|
@ -27,7 +27,7 @@ const sanitizeTriggerPluginNode = (node: Node<TriggerPluginNodePayload>): Node<T
|
|||
const sanitizedData: TriggerPluginNodePayload & { type: BlockEnum.TriggerPlugin } = {
|
||||
type: BlockEnum.TriggerPlugin,
|
||||
title: data.title ?? '',
|
||||
desc: data.desc,
|
||||
desc: data.desc ?? '',
|
||||
plugin_id: data.plugin_id ?? '',
|
||||
provider_id: data.provider_id ?? '',
|
||||
event_name: data.event_name ?? '',
|
||||
|
|
|
|||
Loading…
Reference in New Issue