mirror of
https://github.com/navidrome/navidrome.git
synced 2026-05-03 06:51:16 +00:00
Fix TypeError: Cannot read properties of undefined (reading 'length')
This commit is contained in:
parent
4545cb89c3
commit
1945939ee3
@ -38,7 +38,7 @@ const PlaylistActions = ({ className, ids, data, record, ...rest }) => {
|
|||||||
|
|
||||||
const getAllSongsAndDispatch = React.useCallback(
|
const getAllSongsAndDispatch = React.useCallback(
|
||||||
(action) => {
|
(action) => {
|
||||||
if (ids.length === record.songCount) {
|
if (ids?.length === record.songCount) {
|
||||||
return dispatch(action(data, ids))
|
return dispatch(action(data, ids))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user