fix sync of webhook node

This commit is contained in:
hjlarry 2025-11-14 11:31:08 +08:00
parent a4adafd8ad
commit 7fc98b2183
1 changed files with 2 additions and 0 deletions

View File

@ -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)}