Fixed: Frontend error sorting book index by status

Fixes #1426
This commit is contained in:
ta264
2021-12-23 21:41:43 +00:00
parent 29c7404185
commit 6d8adec7dc
2 changed files with 6 additions and 15 deletions

View File

@@ -160,7 +160,7 @@ export const sortPredicates = {
status: function(item) {
let result = 0;
const hasBookFile = !!item.statistics.bookFileCount;
const hasBookFile = !!item.statistics?.bookFileCount;
const isAvailable = Date.parse(item.releaseDate) < new Date();
if (isAvailable) {