mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-19 15:23:36 +00:00
Fix TypeError: Cannot read properties of undefined (reading 'length')
This commit is contained in:
1 parent
a42aeff88d
commit
d3e142233b
1 file changed
+1
-1
@@ -38,7 +38,7 @@ const PlaylistActions = ({ className, ids, data, record, ...rest }) => {
|
||||
|
||||
const getAllSongsAndDispatch = React.useCallback(
|
||||
(action) => {
|
||||
if (ids.length === record.songCount) {
|
||||
if (ids?.length === record.songCount) {
|
||||
return dispatch(action(data, ids))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user