diff --git a/CHANGELOG.md b/CHANGELOG.md index aee4e09..3cf67a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Added HTML, Markdown to supported Code Editor languages (#543) - Updated options to use datasource ID instead of name (#539) - Updated E2E tests (#538) +- Updated refresh function in the Update Request (#547) ## 4.8.0 (2024-10-25) diff --git a/src/constants/default.ts b/src/constants/default.ts index 062fbfa..e568d52 100644 --- a/src/constants/default.ts +++ b/src/constants/default.ts @@ -38,7 +38,7 @@ console.log(dataQuery);`; */ export const UPDATE_CODE_DEFAULT = `if (context.panel.response) { context.grafana.notifySuccess(['Update', 'Values updated successfully.']); - context.grafana.locationService.reload(); + context.grafana.refresh(); } else { context.grafana.notifyError(['Update', 'An error occurred updating values.']); }`;