diff --git a/app/assets/javascripts/alerts_settings/components/alerts_settings_form.vue b/app/assets/javascripts/alerts_settings/components/alerts_settings_form.vue index 6d1fc29ff84..6e7da070bbc 100644 --- a/app/assets/javascripts/alerts_settings/components/alerts_settings_form.vue +++ b/app/assets/javascripts/alerts_settings/components/alerts_settings_form.vue @@ -203,8 +203,7 @@ export default { } return { ...el, disabled: false }; }); - const [selected] = this.options; - this.selectedEndpoint = selected.value; + this.selectedEndpoint = this.options.find(({ value }) => value === 'opsgenie').value; if (this.targetUrl === null) { this.targetUrl = this.selectedService.targetUrl; } @@ -497,7 +496,7 @@ export default { > diff --git a/app/assets/javascripts/registry/shared/components/expiration_policy_fields.vue b/app/assets/javascripts/registry/shared/components/expiration_policy_fields.vue index 54d7d195734..1ff2f6f99e5 100644 --- a/app/assets/javascripts/registry/shared/components/expiration_policy_fields.vue +++ b/app/assets/javascripts/registry/shared/components/expiration_policy_fields.vue @@ -177,7 +177,7 @@ export default {