diff options
-rw-r--r-- | src/listing-spec.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/listing-spec.js b/src/listing-spec.js index 1c1dbd5e..497f9845 100644 --- a/src/listing-spec.js +++ b/src/listing-spec.js @@ -81,7 +81,7 @@ const listingSpec = [ stringsKey: 'listAlbums.byDateAdded', data({wikiData}) { - return chunkByProperties(wikiData.albumData.slice().sort((a, b) => { + return chunkByProperties(wikiData.albumData.filter(a => a.dateAddedToWiki).sort((a, b) => { if (a.dateAddedToWiki < b.dateAddedToWiki) return -1; if (a.dateAddedToWiki > b.dateAddedToWiki) return 1; }), ['dateAddedToWiki']); |