diff --git a/grafana-plugin/src/containers/IntegrationForm/IntegrationForm.tsx b/grafana-plugin/src/containers/IntegrationForm/IntegrationForm.tsx index 1d083c31..c417a2f4 100644 --- a/grafana-plugin/src/containers/IntegrationForm/IntegrationForm.tsx +++ b/grafana-plugin/src/containers/IntegrationForm/IntegrationForm.tsx @@ -445,14 +445,16 @@ export const IntegrationForm = observer( return; } - if (!IntegrationHelper.isSpecificIntegration(selectedIntegration.value, 'grafana_alerting')) { - pushHistory(response.id); + if (IntegrationHelper.isSpecificIntegration(selectedIntegration.value, 'grafana_alerting')) { + await (formData.is_existing + ? AlertReceiveChannelHelper.connectContactPoint + : AlertReceiveChannelHelper.createContactPoint)( + response.id, + formData.alert_manager, + formData.contact_point + ); } - await (formData.is_existing - ? AlertReceiveChannelHelper.connectContactPoint - : AlertReceiveChannelHelper.createContactPoint)(response.id, formData.alert_manager, formData.contact_point); - pushHistory(response.id); } }