diff --git a/CHANGELOG.md b/CHANGELOG.md index 5302f722..ac70ac20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Change plugin build to use new packages instead of deprecated grafana-toolkit @maskin25 ([#3837](https://github.com/grafana/oncall/pull/3837)) +### Fixed + +- Fix template preview by @vadimkerr ([#3937](https://github.com/grafana/oncall/pull/3937)) + ## v1.3.106 (2024-02-20) ### Added diff --git a/grafana-plugin/src/models/alert_receive_channel/alert_receive_channel.helpers.ts b/grafana-plugin/src/models/alert_receive_channel/alert_receive_channel.helpers.ts index fef73db5..932e21ad 100644 --- a/grafana-plugin/src/models/alert_receive_channel/alert_receive_channel.helpers.ts +++ b/grafana-plugin/src/models/alert_receive_channel/alert_receive_channel.helpers.ts @@ -126,7 +126,7 @@ export class AlertReceiveChannelHelper { payload: { [key: string]: unknown } ) { return ( - await onCallApi().POST('/alertgroups/{id}/preview_template/', { + await onCallApi().POST('/alert_receive_channels/{id}/preview_template/', { params: { path: { id } }, body: { template_name, template_body, payload }, })