« get me outta code hell

data: fix mis-indented Thing.composite.from calls - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-08-31 11:01:25 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-09-05 21:02:55 -0300
commit59023bad2de5cd76edced5393cc38afc6b46fc1c (patch)
tree581d278f9ce6deddca98ce1141fd805ab3de8d0e /src/data
parentf874ea879e8b9555baaaa3a38ec6a00432721846 (diff)
data: fix mis-indented Thing.composite.from calls
Diffstat (limited to 'src/data')
-rw-r--r--src/data/things/track.js52
1 files changed, 25 insertions, 27 deletions
diff --git a/src/data/things/track.js b/src/data/things/track.js
index 9b1a8226..3a4e1585 100644
--- a/src/data/things/track.js
+++ b/src/data/things/track.js
@@ -155,11 +155,10 @@ export class Track extends Thing {
 
     commentatorArtists: Thing.common.commentatorArtists(),
 
-    album:
-      Thing.composite.from(`Track.album`, [
-        Track.composite.withAlbum(),
-        Thing.composite.exposeDependency('#album'),
-      ]),
+    album: Thing.composite.from(`Track.album`, [
+      Track.composite.withAlbum(),
+      Thing.composite.exposeDependency('#album'),
+    ]),
 
     // Note - this is an internal property used only to help identify a track.
     // It should not be assumed in general that the album and dataSourceAlbum match
@@ -197,30 +196,29 @@ export class Track extends Thing {
       Thing.composite.exposeDependency('#originalRelease'),
     ]),
 
-    otherReleases:
-      Thing.composite.from(`Track.otherReleases`, [
-        Thing.composite.earlyExitWithoutDependency('trackData', {mode: 'empty'}),
-        Track.composite.withOriginalRelease({selfIfOriginal: true}),
+    otherReleases: Thing.composite.from(`Track.otherReleases`, [
+      Thing.composite.earlyExitWithoutDependency('trackData', {mode: 'empty'}),
+      Track.composite.withOriginalRelease({selfIfOriginal: true}),
 
-        {
-          flags: {expose: true},
-          expose: {
-            dependencies: ['this', 'trackData', '#originalRelease'],
-            compute: ({
-              this: thisTrack,
-              trackData,
-              '#originalRelease': originalRelease,
-            }) =>
-              (originalRelease === thisTrack
-                ? []
-                : [originalRelease])
-                .concat(trackData.filter(track =>
-                  track !== originalRelease &&
-                  track !== thisTrack &&
-                  track.originalReleaseTrack === originalRelease)),
-          },
+      {
+        flags: {expose: true},
+        expose: {
+          dependencies: ['this', 'trackData', '#originalRelease'],
+          compute: ({
+            this: thisTrack,
+            trackData,
+            '#originalRelease': originalRelease,
+          }) =>
+            (originalRelease === thisTrack
+              ? []
+              : [originalRelease])
+              .concat(trackData.filter(track =>
+                track !== originalRelease &&
+                track !== thisTrack &&
+                track.originalReleaseTrack === originalRelease)),
         },
-      ]),
+      },
+    ]),
 
     artistContribs: Thing.composite.from(`Track.artistContribs`, [
       Track.composite.inheritFromOriginalRelease({property: 'artistContribs'}),