Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
Add guard to prevent attempted read of undefined queue items (#4030)
Browse files Browse the repository at this point in the history
  • Loading branch information
schottra authored Sep 6, 2023
1 parent 16b3d73 commit 92e8d52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web/src/common/store/lineup/sagas.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ function* play(lineupActions, lineupSelector, prefix, action) {
const queueable = yield call(getToQueue, lineup.prefix, e)
// If the entry is the one we're playing, set isPreview to incoming
// value
if (queueable.uid === action.uid) {
if (queueable?.uid === action.uid) {
queueable.isPreview = isPreview
}
return queueable
Expand Down

0 comments on commit 92e8d52

Please sign in to comment.