Skip to content

Commit

Permalink
Fix: Unsaved changes message no longer triggered after adding an addi…
Browse files Browse the repository at this point in the history
…tional metric and saving a chart
  • Loading branch information
kelanik8 committed Nov 30, 2023
1 parent fdb0610 commit 53487fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/web/compose/src/views/Admin/Charts/Edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 53487fc

Please sign in to comment.