« get me outta code hell

data, test: album.trackData -> album.ownTrackData - 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-11-28 13:23:17 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-11-28 13:44:38 -0400
commit7215aef076f9734f35dc4f25e54fbe2371630c5f (patch)
tree6702c0889f55ecf6588dc16ee8fa0f54db659d76 /src/data/things
parent084b5423d2a4fc60a91dd4aeb24ff0cd4d870fbc (diff)
data, test: album.trackData -> album.ownTrackData
Diffstat (limited to 'src/data/things')
-rw-r--r--src/data/things/album.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/data/things/album.js b/src/data/things/album.js
index 63ec1140..a95ba354 100644
--- a/src/data/things/album.js
+++ b/src/data/things/album.js
@@ -133,7 +133,10 @@ export class Album extends Thing {
       class: input.value(Group),
     }),
 
-    trackData: wikiData({
+    // Only the tracks which belong to this album.
+    // Necessary for computing the track list, so provide this statically
+    // or keep it updated.
+    ownTrackData: wikiData({
       class: input.value(Track),
     }),