Skip to content

Commit d5f2991

Browse files
fix(replay): remove ghost tab on mobile replay (#88707)
before: <img width="635" alt="Screenshot 2025-04-03 at 10 38 34 AM" src="https://github.com/user-attachments/assets/9cd53c28-e688-4d30-89d8-ebb627fdc1f2" /> after: <img width="591" alt="SCR-20250403-jtgv" src="https://github.com/user-attachments/assets/135cf364-1eef-483a-b16e-dcd4958015b4" />
1 parent 20bec4a commit d5f2991

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

static/app/views/replays/detail/layout/focusTabs.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ function FocusTabs({isVideoReplay}: Props) {
3838
const {getActiveTab, setActiveTab} = useActiveReplayTab({isVideoReplay});
3939
const activeTab = getActiveTab();
4040

41+
const tabs = Object.entries(getReplayTabs({isVideoReplay})).filter(
42+
([_, v]) => v !== null
43+
);
44+
4145
return (
4246
<TabContainer>
4347
<Tabs
@@ -56,7 +60,7 @@ function FocusTabs({isVideoReplay}: Props) {
5660
}}
5761
>
5862
<TabList>
59-
{Object.entries(getReplayTabs({isVideoReplay})).map(([tab, label]) => (
63+
{tabs.map(([tab, label]) => (
6064
<TabList.Item key={tab} data-test-id={`replay-details-${tab}-btn`}>
6165
{label}
6266
</TabList.Item>

0 commit comments

Comments
 (0)