« get me outta code hell

content, data: be even more guarded about contrib arrays - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things
diff options
context:
space:
mode:
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
commit93448ef747b681d3b87b050b555311c0172b83cc (patch)
tree782696a74c2349b851637e52d2f0f02d71bc41e5 /src/data/things
parent8f8361c7c45b02a2221c01acc492ba4d3ae1c42e (diff)
content, data: be even more guarded about contrib arrays
Diffstat (limited to 'src/data/things')
-rw-r--r--src/data/things/artist.js6
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)) ?? [],
       },
     },