From c0aa16d8bb8211d7eb46303b1d2c097fe2407d27 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 --- frontend/src/Store/Actions/artistIndexActions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Store/Actions/artistIndexActions.js b/frontend/src/Store/Actions/artistIndexActions.js index f21a6bfd0..bc941b51f 100644 --- a/frontend/src/Store/Actions/artistIndexActions.js +++ b/frontend/src/Store/Actions/artistIndexActions.js @@ -204,7 +204,7 @@ export const defaultState = { trackCount: function(item) { const { statistics = {} } = item; - return statistics.totalTrackCount; + return statistics.totalTrackCount || 0; }, sizeOnDisk: function(item) {