From aabcc816be78c0aae53174a62d3a773e24bebc9c Mon Sep 17 00:00:00 2001 From: Violet Caulfield <42452695+anultravioletaurora@users.noreply.github.com> Date: Sat, 22 Nov 2025 08:27:46 -0600 Subject: [PATCH] #703 Fix issue where navigation in the context menu nested in the player didn't work --- src/components/Context/utils/navigation.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/Context/utils/navigation.ts b/src/components/Context/utils/navigation.ts index 6c577cd3..1f403bea 100644 --- a/src/components/Context/utils/navigation.ts +++ b/src/components/Context/utils/navigation.ts @@ -8,6 +8,9 @@ export function goToAlbumFromContextSheet(album: BaseItemDto | undefined) { // Pop Context Sheet navigationRef.dispatch(StackActions.pop()) + if (navigationRef.getCurrentRoute()?.name === 'PlayerScreen') + navigationRef.dispatch(StackActions.pop()) // Dismiss player modal + const state = navigationRef.getRootState() const tabsRoute = state.routes.find((r) => r.name === 'Tabs') @@ -40,6 +43,9 @@ export function goToArtistFromContextSheet(artist: BaseItemDto | undefined) { // Pop Context Sheet navigationRef.dispatch(StackActions.pop()) + if (navigationRef.getCurrentRoute()?.name === 'PlayerScreen') + navigationRef.dispatch(StackActions.pop()) // Dismiss player modal + const state = navigationRef.getRootState() const tabsRoute = state.routes.find((r) => r.name === 'Tabs')