diff options
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/search-page.js')
| -rw-r--r-- | packages/meshbay-hub/src/meshbay_hub/static/search-page.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/search-page.js b/packages/meshbay-hub/src/meshbay_hub/static/search-page.js index 3759650..8e3f17c 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/search-page.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/search-page.js @@ -657,9 +657,10 @@ function SearchPage({ token, username, userId, groups, onPlayQueue, userPrefs }) } }, [allEntries, onPlayQueue, connectGroup]); - const handleMusicPlay = useCallback((tracks, startIndex) => { - setVideoEntry(null); - if (onPlayQueue) onPlayQueue(tracks, startIndex); + // Same as group-page.js's wrapper: `op` must be named to survive the hop. + const handleMusicPlay = useCallback((tracks, startIndex, op) => { + if (!op || op === 'replace') setVideoEntry(null); + if (onPlayQueue) onPlayQueue(tracks, startIndex, null, op); }, [onPlayQueue]); const downloadForModal = useCallback(async (entry) => { |