From e996600dc8160039d1b0c3845030e4edcfed08ad Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Tue, 18 Feb 2025 15:19:41 +0100 Subject: [PATCH] ui: fix data parser for heatmap --- .../Widgets/CustomMetricsWidgets/ClickMapCard/ClickMapCard.tsx | 1 - frontend/app/mstore/types/widget.ts | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/ClickMapCard/ClickMapCard.tsx b/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/ClickMapCard/ClickMapCard.tsx index 1b0e35d35..3eed642e6 100644 --- a/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/ClickMapCard/ClickMapCard.tsx +++ b/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/ClickMapCard/ClickMapCard.tsx @@ -18,7 +18,6 @@ function ClickMapCard() { const url = metricStore.instance.data.path; const operator = metricStore.instance.series[0]?.filter.filters[0]?.operator ? metricStore.instance.series[0].filter.filters[0].operator : 'startsWith' - React.useEffect(() => { return () => setCustomSession(null); }, []); diff --git a/frontend/app/mstore/types/widget.ts b/frontend/app/mstore/types/widget.ts index fef672469..abdbf400b 100644 --- a/frontend/app/mstore/types/widget.ts +++ b/frontend/app/mstore/types/widget.ts @@ -314,6 +314,7 @@ export default class Widget { } if (this.metricType === HEATMAP) { + Object.assign(this.data, data); return; }