diff options
author | (quasar) nebula <towerofnix@gmail.com> | 2021-01-12 12:31:33 -0400 |
---|---|---|
committer | (quasar) nebula <towerofnix@gmail.com> | 2021-01-12 12:31:33 -0400 |
commit | 0b20efeb113fd51291dee3e4cfa76e044c22ce2e (patch) | |
tree | 0e18401871df400216bf6feb6c24e8feb7540386 /static/client.js | |
parent | 8a7cb1edff25ba3e612d7c24b07cc776ff8738d6 (diff) |
traversing fandom
Diffstat (limited to 'static/client.js')
-rw-r--r-- | static/client.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/static/client.js b/static/client.js index 549fde29..83c82a29 100644 --- a/static/client.js +++ b/static/client.js @@ -167,8 +167,8 @@ fetch(rebase('data.json')).then(data => data.json()).then(data => { artistData = data.artistData; flashData = data.flashData; - officialAlbumData = albumData.filter(album => !album.isFanon); - fandomAlbumData = albumData.filter(album => album.isFanon); + officialAlbumData = albumData.filter(album => album.groups.includes('group:official')); + fandomAlbumData = albumData.filter(album => !album.groups.includes('group:official')); artistNames = artistData.filter(artist => !artist.alias).map(artist => artist.name); for (const element of elements1) element.style.display = 'none'; |