Fix TypeError: Cannot read properties of undefined (reading 'length')
This commit is contained in:
parent
a42aeff88d
commit
d3e142233b
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue