Fix template preview (#3937)

# What this PR does

Fixes template preview URL

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
This commit is contained in:
Vadim Stepanov 2024-02-21 16:30:15 +00:00 committed by GitHub
parent 828b0a3f4e
commit c8bb954041
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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 },
})