« get me outta code hell

data: Track: reverse spec fix-ups - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/track.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-01-11 17:06:25 -0400
committer(quasar) nebula <qznebula@protonmail.com>2025-01-11 17:06:25 -0400
commit7a30ec426d9cb4049c663441a510bd1525deed40 (patch)
treea8ad6635ce6ead797f08725446eb80278787424f /src/data/things/track.js
parent6c58ef8e22fda25f37a6eb5890f34a48b25da43f (diff)
data: Track: reverse spec fix-ups
Diffstat (limited to 'src/data/things/track.js')
-rw-r--r--src/data/things/track.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/data/things/track.js b/src/data/things/track.js
index 5234c568..3d02e85e 100644
--- a/src/data/things/track.js
+++ b/src/data/things/track.js
@@ -657,14 +657,14 @@ export class Track extends Thing {
     tracksWhichReference: {
       bindTo: 'trackData',
 
-      referencing: track => [track],
-      referenced: track => track.sampledTracks,
+      referencing: track => track.isOriginalRelease ? [track] : [],
+      referenced: track => track.referencedTracks,
     },
 
     tracksWhichSample: {
       bindTo: 'trackData',
 
-      referencing: track => [track],
+      referencing: track => track.isOriginalRelease ? [track] : [],
       referenced: track => track.sampledTracks,
     },
   };