From 23b29313e227ff561627143c5c0108525f5d8df0 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 25 Nov 2025 16:47:06 -0400 Subject: data: Track: chop withOtherReleases --- src/data/things/track.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/data/things/track.js') diff --git a/src/data/things/track.js b/src/data/things/track.js index a8c4f8d9..401543f3 100644 --- a/src/data/things/track.js +++ b/src/data/things/track.js @@ -90,7 +90,6 @@ import { inheritContributionListFromMainRelease, inheritFromMainRelease, withDirectorySuffix, - withOtherReleases, withPropertyFromAlbum, withSuffixDirectoryFromAlbum, withTrackNumber, @@ -991,8 +990,14 @@ export class Track extends Thing { ], otherReleases: [ - withOtherReleases(), - exposeDependency({dependency: '#otherReleases'}), + { + dependencies: [input.myself(), 'allReleases'], + compute: ({ + [input.myself()]: thisTrack, + ['allReleases']: allReleases, + }) => + allReleases.filter(track => track !== thisTrack), + }, ], commentaryFromMainRelease: [ -- cgit 1.3.0-6-gf8a5