From 773beaf4105deb57f3bfb9204d9013c329a36eed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C5=BEe=20Fortun?= Date: Wed, 23 Aug 2023 12:18:21 +0200 Subject: [PATCH] Fix reporter builder stale data --- client/web/reporter/src/views/Report/Builder.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/web/reporter/src/views/Report/Builder.vue b/client/web/reporter/src/views/Report/Builder.vue index 9082b796e..4cf5d8658 100644 --- a/client/web/reporter/src/views/Report/Builder.vue +++ b/client/web/reporter/src/views/Report/Builder.vue @@ -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'))