mirror of https://github.com/langgenius/dify.git
fix sync of webhook node
This commit is contained in:
parent
a4adafd8ad
commit
7fc98b2183
|
|
@ -78,6 +78,7 @@ const Panel: FC<NodePanelProps<WebhookTriggerNodeType>> = ({
|
|||
<div className="flex gap-1" style={{ height: '32px' }}>
|
||||
<div className="w-26 shrink-0">
|
||||
<SimpleSelect
|
||||
key={`${id}-method-${inputs.method}`}
|
||||
items={HTTP_METHODS}
|
||||
defaultValue={inputs.method}
|
||||
onSelect={item => handleMethodChange(item.value as HttpMethod)}
|
||||
|
|
@ -146,6 +147,7 @@ const Panel: FC<NodePanelProps<WebhookTriggerNodeType>> = ({
|
|||
<Field title={t(`${i18nPrefix}.contentType`)}>
|
||||
<div className="w-full">
|
||||
<SimpleSelect
|
||||
key={`${id}-content-type-${inputs.content_type}`}
|
||||
items={CONTENT_TYPES}
|
||||
defaultValue={inputs.content_type}
|
||||
onSelect={item => handleContentTypeChange(item.value as string)}
|
||||
|
|
|
|||
Loading…
Reference in New Issue