Fix reporter builder stale data

This commit is contained in:
Jože Fortun
2023-08-23 12:22:01 +02:00
parent 37b027391c
commit 773beaf410
@@ -818,8 +818,9 @@ export default {
// Fetch saved report and merge with datasources
return this.$SystemAPI.reportRead({ reportID }).then(report => {
return this.$SystemAPI.reportUpdate(new system.Report({ ...report, sources }))
}).then(({ sources }) => {
this.report.sources = (new system.Report({ sources })).sources
}).then(report => {
report.scenarios = this.report.scenarios
this.report = new system.Report(report)
this.refreshReport()
this.datasources.showConfigurator = false
this.toastSuccess(this.$t('notification:report.datasources.updated'))