From 50696090b0681341e35b4ed689da19315fedcb10 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 2 Apr 2024 11:00:11 -0300 Subject: content: generateArtistGroupContributionsInfo: fix missing slice This isn't relevant to the immediate WIP bugfix, but keeps the count sort from "leaking" into the unrelated duration sort (both are supposed to only fall back to category sort). --- src/content/dependencies/generateArtistGroupContributionsInfo.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/content') diff --git a/src/content/dependencies/generateArtistGroupContributionsInfo.js b/src/content/dependencies/generateArtistGroupContributionsInfo.js index a51f516b..c6960a6e 100644 --- a/src/content/dependencies/generateArtistGroupContributionsInfo.js +++ b/src/content/dependencies/generateArtistGroupContributionsInfo.js @@ -45,6 +45,7 @@ export default { const groupsSortedByCount = allGroupsOrdered + .slice() .sort((a, b) => groupToCountMap.get(b) - groupToCountMap.get(a)); // The filter here ensures all displayed groups have at least some duration -- cgit 1.3.0-6-gf8a5