From 53487fc5211439b6aa09f1085f61f47e3b684683 Mon Sep 17 00:00:00 2001 From: Kelani Tolulope Date: Wed, 29 Nov 2023 14:30:46 +0100 Subject: [PATCH] Fix: Unsaved changes message no longer triggered after adding an additional metric and saving a chart --- client/web/compose/src/views/Admin/Charts/Edit.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/client/web/compose/src/views/Admin/Charts/Edit.vue b/client/web/compose/src/views/Admin/Charts/Edit.vue index 1859f9a5ca..c264b63645 100644 --- a/client/web/compose/src/views/Admin/Charts/Edit.vue +++ b/client/web/compose/src/views/Admin/Charts/Edit.vue @@ -786,6 +786,7 @@ export default { if (chart.chartID === NoID) { this.createChart(c).then(({ chartID }) => { this.toastSuccess(this.$t('notification:chart.saved')) + this.chart = chartConstructor(chart) this.initialChartState = cloneDeep(chartConstructor(this.chart)) if (closeOnSuccess) { this.redirect()