Skip to content

Commit bfc9076

Browse files
committed
fixed method
1 parent c428675 commit bfc9076

File tree

1 file changed

+3
-1
lines changed
  • x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/webhook

1 file changed

+3
-1
lines changed

x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/webhook/webhook_connectors.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ const WebhookActionConnectorFields: React.FunctionComponent<ActionConnectorField
3838
const [httpHeaderValue, setHttpHeaderValue] = useState<string>('');
3939
const [hasHeaders, setHasHeaders] = useState<boolean>(false);
4040

41-
editActionConfig('method', 'post'); // set method to POST by default
41+
if (!method) {
42+
editActionConfig('method', 'post'); // set method to POST by default
43+
}
4244

4345
const headerErrors = {
4446
keyHeader: new Array<string>(),

0 commit comments

Comments
 (0)