Skip to content

Commit

Permalink
Fix TypeError: Cannot read properties of undefined (reading 'length')
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Oct 29, 2021
1 parent a42aeff commit d3e1422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/playlist/PlaylistActions.js
Expand Up @@ -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))
}

Expand Down

0 comments on commit d3e1422

Please sign in to comment.