From 06d3e472327602f4f5e43ea4474766da46b70584 Mon Sep 17 00:00:00 2001 From: Qstick Date: Mon, 7 Sep 2020 01:23:14 -0400 Subject: [PATCH] Fixed: Sorting by track count Signed-off-by: Robin Dadswell --- frontend/src/Store/Actions/authorIndexActions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Store/Actions/authorIndexActions.js b/frontend/src/Store/Actions/authorIndexActions.js index cbca74029..03a34e042 100644 --- a/frontend/src/Store/Actions/authorIndexActions.js +++ b/frontend/src/Store/Actions/authorIndexActions.js @@ -180,7 +180,7 @@ export const defaultState = { bookCount: function(item) { const { statistics = {} } = item; - return statistics.bookCount; + return statistics.bookCount || 0; }, sizeOnDisk: function(item) {