3
0

Fix: Unsaved changes message no longer triggered after adding an additional metric and saving a chart

This commit is contained in:
Kelani Tolulope
2023-11-29 14:30:46 +01:00
parent fdb0610da8
commit 53487fc521

View File

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