diff --git a/app/assets/javascripts/admin/addon/components/admin-config-areas/webhooks-form.gjs b/app/assets/javascripts/admin/addon/components/admin-config-areas/webhooks-form.gjs index 1e3e99cdad52c..83156fe3340da 100644 --- a/app/assets/javascripts/admin/addon/components/admin-config-areas/webhooks-form.gjs +++ b/app/assets/javascripts/admin/addon/components/admin-config-areas/webhooks-form.gjs @@ -42,7 +42,7 @@ export default class AdminConfigAreasWebhookForm extends Component { return { payload_url: this.webhook.payload_url, content_type: this.webhook.content_type, - secret: this.webhook.secret === "" ? null : this.webhook.secret, + secret: this.webhook.secret, categories: this.webhook.categories, group_names: this.webhook.group_names, tag_names: this.webhook.tag_names, diff --git a/app/assets/javascripts/admin/addon/models/web-hook.js b/app/assets/javascripts/admin/addon/models/web-hook.js index 8139a9918fcb9..d50510ad4ec2e 100644 --- a/app/assets/javascripts/admin/addon/models/web-hook.js +++ b/app/assets/javascripts/admin/addon/models/web-hook.js @@ -113,7 +113,7 @@ export default class WebHook extends RestModel { return { payload_url: this.payload_url, content_type: this.content_type, - secret: this.secret, + secret: this.secret ?? "", wildcard_web_hook: this.wildcard_web_hook, verify_certificate: this.verify_certificate, active: this.active,