diff --git a/server/utils/libraryHelpers.js b/server/utils/libraryHelpers.js index 49d5264c..41d140f8 100644 --- a/server/utils/libraryHelpers.js +++ b/server/utils/libraryHelpers.js @@ -672,10 +672,12 @@ module.exports = { } const indexToPut = categoryMap.continueSeries.items.findIndex(i => i.prevBookInProgressLastUpdate < bookForContinueSeries.prevBookInProgressLastUpdate) - if (indexToPut >= 0) { - categoryMap.continueSeries.items.splice(indexToPut, 0, bookForContinueSeries) - } else if (categoryMap.continueSeries.items.length < 10) { // Max 10 books - categoryMap.continueSeries.items.push(bookForContinueSeries) + if (!categoryMap.continueSeries.items.find(book => book.id === bookForContinueSeries.id)) { + if (indexToPut >= 0) { + categoryMap.continueSeries.items.splice(indexToPut, 0, bookForContinueSeries) + } else if (categoryMap.continueSeries.items.length < 10) { // Max 10 books + categoryMap.continueSeries.items.push(bookForContinueSeries) + } } } }