mirror of
https://github.com/JonasunderscoreJones/K-Comebacks.git
synced 2025-10-23 09:59:20 +02:00
Fixed release type dropdown
Fixed duplicates of the release types and improved loading speeds
This commit is contained in:
parent
e1e70bcfdc
commit
0e4a2e3ed4
1 changed files with 3 additions and 0 deletions
|
@ -88,6 +88,9 @@
|
|||
// releaseTypes should be an array of all elements of all the release.type lists of all releases
|
||||
releaseTypes = releaseTypes.flat();
|
||||
|
||||
// eliminate duplicates
|
||||
releaseTypes = [...new Set(releaseTypes)];
|
||||
|
||||
// Sort releases by date from most recent to least recent
|
||||
releases.sort((a, b) => new Date(b.date) - new Date(a.date));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue