fix(ui): update song fetching logic to disable for radio (#4149)

Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
Deluan Quintão
2025-05-30 08:29:36 -04:00
committed by GitHub
parent a2d764d5bc
commit c12472bd19
+1 -1
View File
@@ -57,7 +57,7 @@ const useStyles = makeStyles((theme) => ({
const PlayerToolbar = ({ id, isRadio }) => {
const dispatch = useDispatch()
const { data, loading } = useGetOne('song', id, { enabled: !!id })
const { data, loading } = useGetOne('song', id, { enabled: !!id && !isRadio })
const [toggleLove, toggling] = useToggleLove('song', data)
const isDesktop = useMediaQuery('(min-width:810px)')
const classes = useStyles()