mirror of
https://github.com/navidrome/navidrome.git
synced 2025-05-22 21:11:26 +03:00
Do not reset the SongList query params
This commit is contained in:
parent
ddcfc546fb
commit
b836dfe7f4
@ -49,6 +49,11 @@ const SongList = (props) => {
|
|||||||
const dispatch = useDispatch()
|
const dispatch = useDispatch()
|
||||||
const isXsmall = useMediaQuery((theme) => theme.breakpoints.down('xs'))
|
const isXsmall = useMediaQuery((theme) => theme.breakpoints.down('xs'))
|
||||||
const isDesktop = useMediaQuery((theme) => theme.breakpoints.up('md'))
|
const isDesktop = useMediaQuery((theme) => theme.breakpoints.up('md'))
|
||||||
|
|
||||||
|
const handleRowClick = (id, basePath, record) => {
|
||||||
|
dispatch(setTrack(record))
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<List
|
<List
|
||||||
@ -75,7 +80,7 @@ const SongList = (props) => {
|
|||||||
) : (
|
) : (
|
||||||
<SongDatagrid
|
<SongDatagrid
|
||||||
expand={<SongDetails />}
|
expand={<SongDetails />}
|
||||||
rowClick={(id, basePath, record) => dispatch(setTrack(record))}
|
rowClick={handleRowClick}
|
||||||
contextAlwaysVisible={!isDesktop}
|
contextAlwaysVisible={!isDesktop}
|
||||||
>
|
>
|
||||||
<TextField source="title" />
|
<TextField source="title" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user