mirror of
https://github.com/langgenius/dify.git
synced 2026-04-30 05:06:29 +08:00
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="flex gap-1" style={{ height: '32px' }}>
|
||||||
<div className="w-26 shrink-0">
|
<div className="w-26 shrink-0">
|
||||||
<SimpleSelect
|
<SimpleSelect
|
||||||
|
key={`${id}-method-${inputs.method}`}
|
||||||
items={HTTP_METHODS}
|
items={HTTP_METHODS}
|
||||||
defaultValue={inputs.method}
|
defaultValue={inputs.method}
|
||||||
onSelect={item => handleMethodChange(item.value as HttpMethod)}
|
onSelect={item => handleMethodChange(item.value as HttpMethod)}
|
||||||
@ -146,6 +147,7 @@ const Panel: FC<NodePanelProps<WebhookTriggerNodeType>> = ({
|
|||||||
<Field title={t(`${i18nPrefix}.contentType`)}>
|
<Field title={t(`${i18nPrefix}.contentType`)}>
|
||||||
<div className="w-full">
|
<div className="w-full">
|
||||||
<SimpleSelect
|
<SimpleSelect
|
||||||
|
key={`${id}-content-type-${inputs.content_type}`}
|
||||||
items={CONTENT_TYPES}
|
items={CONTENT_TYPES}
|
||||||
defaultValue={inputs.content_type}
|
defaultValue={inputs.content_type}
|
||||||
onSelect={item => handleContentTypeChange(item.value as string)}
|
onSelect={item => handleContentTypeChange(item.value as string)}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user