From 49c0e3ac5328f340c69adf211272e53baad3f3a8 Mon Sep 17 00:00:00 2001 From: Bojan Sovtic Date: Wed, 18 Dec 2024 11:55:50 +0100 Subject: [PATCH] Possible bugfix --- .../dashboard/widget/WidgetController.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/modules/documentExecution/dashboard/widget/WidgetController.vue b/src/modules/documentExecution/dashboard/widget/WidgetController.vue index c9ee97208..b80da59b5 100644 --- a/src/modules/documentExecution/dashboard/widget/WidgetController.vue +++ b/src/modules/documentExecution/dashboard/widget/WidgetController.vue @@ -355,7 +355,13 @@ export default defineComponent({ }, async reloadWidgetData(associativeResponseSelections: any) { this.widgetLoading = true - this.widgetData = await getWidgetData(this.dashboardId, this.widgetModel, this.model?.configuration?.datasets, this.$http, false, this.activeSelections, this.search, this.dashboards[this.dashboardId].configuration, associativeResponseSelections) + let associativeSelectionsFromStore = null + if (!associativeResponseSelections) { + this.getSelectionsFromStore() + if (this.widgetModel.type === 'selection') return + associativeSelectionsFromStore = this.getAssociativeSelectionsFromStoreIfDatasetIsBeingUsedInAssociation() + } + this.widgetData = await getWidgetData(this.dashboardId, this.widgetModel, this.model?.configuration?.datasets, this.$http, false, this.activeSelections, this.search, this.dashboards[this.dashboardId].configuration, associativeResponseSelections ?? associativeSelectionsFromStore) this.widgetLoading = false }, widgetUsesSelections(selections: ISelection[]) {