From b836dfe7f4954d79c918fb3bf8797c3f8247564a Mon Sep 17 00:00:00 2001 From: Deluan Date: Sun, 31 May 2020 14:27:02 -0400 Subject: [PATCH] Do not reset the SongList query params --- ui/src/song/SongList.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ui/src/song/SongList.js b/ui/src/song/SongList.js index e4ee3f85e..ff55c4a5a 100644 --- a/ui/src/song/SongList.js +++ b/ui/src/song/SongList.js @@ -49,6 +49,11 @@ const SongList = (props) => { const dispatch = useDispatch() const isXsmall = useMediaQuery((theme) => theme.breakpoints.down('xs')) const isDesktop = useMediaQuery((theme) => theme.breakpoints.up('md')) + + const handleRowClick = (id, basePath, record) => { + dispatch(setTrack(record)) + } + return ( <> { ) : ( } - rowClick={(id, basePath, record) => dispatch(setTrack(record))} + rowClick={handleRowClick} contextAlwaysVisible={!isDesktop} >