Do not reset the SongList query params

This commit is contained in:
Deluan 2020-05-31 14:27:02 -04:00
parent ddcfc546fb
commit b836dfe7f4
1 changed files with 6 additions and 1 deletions

View File

@ -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 (
<>
<List
@ -75,7 +80,7 @@ const SongList = (props) => {
) : (
<SongDatagrid
expand={<SongDetails />}
rowClick={(id, basePath, record) => dispatch(setTrack(record))}
rowClick={handleRowClick}
contextAlwaysVisible={!isDesktop}
>
<TextField source="title" />