From c534ab570ffa43a1b6021bc5462c6ce805158fc1 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 26 Jul 2020 10:49:39 -0700 Subject: [PATCH] Don't process queue item without details Signed-off-by: Robin Dadswell --- frontend/src/Store/Selectors/createQueueItemSelector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Store/Selectors/createQueueItemSelector.js b/frontend/src/Store/Selectors/createQueueItemSelector.js index a4e109e83..e6df48a3f 100644 --- a/frontend/src/Store/Selectors/createQueueItemSelector.js +++ b/frontend/src/Store/Selectors/createQueueItemSelector.js @@ -5,7 +5,7 @@ function createQueueItemSelector() { (state, { bookId }) => bookId, (state) => state.queue.details.items, (bookId, details) => { - if (!bookId) { + if (!bookId || !details) { return null; }