mirror of
https://github.com/langgenius/dify.git
synced 2026-04-21 23:38:53 +08:00
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 = {
|
export type TriggerPluginNodePayload = {
|
||||||
title: string
|
title: string
|
||||||
desc?: string
|
desc: string
|
||||||
plugin_id: string
|
plugin_id: string
|
||||||
provider_id: string
|
provider_id: string
|
||||||
event_name: string
|
event_name: string
|
||||||
@ -27,7 +27,7 @@ const sanitizeTriggerPluginNode = (node: Node<TriggerPluginNodePayload>): Node<T
|
|||||||
const sanitizedData: TriggerPluginNodePayload & { type: BlockEnum.TriggerPlugin } = {
|
const sanitizedData: TriggerPluginNodePayload & { type: BlockEnum.TriggerPlugin } = {
|
||||||
type: BlockEnum.TriggerPlugin,
|
type: BlockEnum.TriggerPlugin,
|
||||||
title: data.title ?? '',
|
title: data.title ?? '',
|
||||||
desc: data.desc,
|
desc: data.desc ?? '',
|
||||||
plugin_id: data.plugin_id ?? '',
|
plugin_id: data.plugin_id ?? '',
|
||||||
provider_id: data.provider_id ?? '',
|
provider_id: data.provider_id ?? '',
|
||||||
event_name: data.event_name ?? '',
|
event_name: data.event_name ?? '',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user