From 35c515556ee927ecfd3767148a94431864f68df5 Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Wed, 4 Jun 2025 10:35:29 +0200 Subject: [PATCH] ui: fix audioplayer event start --- .../components/Session/Player/ReplayPlayer/AudioPlayer.tsx | 2 +- frontend/app/components/Session_/Player/Controls/Controls.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/app/components/Session/Player/ReplayPlayer/AudioPlayer.tsx b/frontend/app/components/Session/Player/ReplayPlayer/AudioPlayer.tsx index 9a103665e..9abcf1234 100644 --- a/frontend/app/components/Session/Player/ReplayPlayer/AudioPlayer.tsx +++ b/frontend/app/components/Session/Player/ReplayPlayer/AudioPlayer.tsx @@ -42,7 +42,7 @@ function DropdownAudioPlayer({ return { url: data.url, timestamp: data.timestamp, - start: startTs, + start: Math.max(0, startTs), }; }), [audioEvents.length, sessionStart], diff --git a/frontend/app/components/Session_/Player/Controls/Controls.tsx b/frontend/app/components/Session_/Player/Controls/Controls.tsx index 691ae6eb1..a7038da7b 100644 --- a/frontend/app/components/Session_/Player/Controls/Controls.tsx +++ b/frontend/app/components/Session_/Player/Controls/Controls.tsx @@ -265,11 +265,11 @@ const DevtoolsButtons = observer( aiSummaryStore.setToggleSummary(!aiSummaryStore.toggleSummary); }; - const possibleAudio = events.filter((e) => e.name.includes('media/audio')); + const possibleAudio = events.filter((e) => e.name?.includes('media/audio')); const integratedServices = integrationsStore.integrations.backendLogIntegrations; - const showIcons = activeTab === 'EXPORT' + const showIcons = activeTab === 'EXPORT'; const labels = { console: { icon: ,