mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-07 03:20:19 -06:00
Fix issue where navigation in the context menu nested in the player didn't work
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user