From 0107c9c5237585063d38ff51447f974db8e3de6e Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Tue, 11 Mar 2025 16:24:26 +0100 Subject: [PATCH] ui: fix in-session clickmap refresh --- frontend/app/components/Session/RightBlock.tsx | 3 --- .../Session_/PageInsightsPanel/PageInsightsPanel.tsx | 4 +++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/app/components/Session/RightBlock.tsx b/frontend/app/components/Session/RightBlock.tsx index 31f7d3a2a..f5efdb31e 100644 --- a/frontend/app/components/Session/RightBlock.tsx +++ b/frontend/app/components/Session/RightBlock.tsx @@ -5,9 +5,6 @@ import PageInsightsPanel from '../Session_/PageInsightsPanel/PageInsightsPanel'; import UnitStepsModal from "../Session_/UnitStepsModal"; import TagWatch from 'Components/Session/Player/TagWatch'; import cn from 'classnames'; -import EventsBlock from '../Session_/EventsBlock'; -import HighlightPanel from '../Session_/Highlight/HighlightPanel'; -import PageInsightsPanel from '../Session_/PageInsightsPanel/PageInsightsPanel'; import stl from './rightblock.module.css'; diff --git a/frontend/app/components/Session_/PageInsightsPanel/PageInsightsPanel.tsx b/frontend/app/components/Session_/PageInsightsPanel/PageInsightsPanel.tsx index fe70fa961..b86681891 100644 --- a/frontend/app/components/Session_/PageInsightsPanel/PageInsightsPanel.tsx +++ b/frontend/app/components/Session_/PageInsightsPanel/PageInsightsPanel.tsx @@ -67,10 +67,12 @@ function PageInsightsPanel({ setActiveTab }: Props) { }); } prevInsights.current = insightsFilters; + return () => { + prevInsights.current = undefined; + } }, [insightsFilters]); const onPageSelect = ({ value }: any) => { - const { t } = useTranslation(); const event = events.find((item) => item.url === value.value); Player.jump(event.timestamp - startTs + JUMP_OFFSET); Player.pause();