diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-08-21 22:12:24 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-09-05 21:02:49 -0300 |
commit | 93448ef747b681d3b87b050b555311c0172b83cc (patch) | |
tree | 782696a74c2349b851637e52d2f0f02d71bc41e5 /src/data/things | |
parent | 8f8361c7c45b02a2221c01acc492ba4d3ae1c42e (diff) |
content, data: be even more guarded about contrib arrays
Diffstat (limited to 'src/data/things')
-rw-r--r-- | src/data/things/artist.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/data/things/artist.js b/src/data/things/artist.js index 43628b6b..4f157bc6 100644 --- a/src/data/things/artist.js +++ b/src/data/things/artist.js @@ -71,9 +71,9 @@ export class Artist extends Thing { compute: ({trackData, [Artist.instance]: artist}) => trackData?.filter((track) => [ - ...track.artistContribs, - ...track.contributorContribs, - ...track.coverArtistContribs, + ...track.artistContribs ?? [], + ...track.contributorContribs ?? [], + ...track.coverArtistContribs ?? [], ].some(({who}) => who === artist)) ?? [], }, }, |