Don't process queue item without details

Signed-off-by: Robin Dadswell <robin@dadswell.email>
This commit is contained in:
Mark McDowall 2020-07-26 10:49:39 -07:00 committed by Qstick
parent 1f88450045
commit c534ab570f

View file

@ -5,7 +5,7 @@ function createQueueItemSelector() {
(state, { bookId }) => bookId,
(state) => state.queue.details.items,
(bookId, details) => {
if (!bookId) {
if (!bookId || !details) {
return null;
}