From 7b61b2cbf5eca5f31ec227bdfc98fbf8f6ec9b6a Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 13 Jun 2022 22:55:54 -0300 Subject: filter out no dateAdded in respective listing --- src/listing-spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']); -- cgit 1.3.0-6-gf8a5