Browse Source

Fix undefined check on playlist length

master
jeffvli 3 years ago
parent
commit
9cfd152851
  1. 4
      src/components/playlist/PlaylistView.tsx

4
src/components/playlist/PlaylistView.tsx

@ -310,13 +310,13 @@ const PlaylistView = ({ ...rest }) => {
appearance="primary"
size="lg"
onClick={handlePlay}
disabled={localPlaylistData.length < 1}
disabled={localPlaylistData?.length < 1}
/>
<PlayAppendButton
appearance="primary"
size="lg"
onClick={handlePlayAppend}
disabled={localPlaylistData.length < 1}
disabled={localPlaylistData?.length < 1}
/>
<SaveButton
size="lg"

Loading…
Cancel
Save