« get me outta code hell

data: track: remove unneeded explicit {to} on withOriginalRelease call - 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-22 22:39:22 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-09-05 21:02:50 -0300
commitc7e624684069fb9325c426500a5fcc153cf26b41 (patch)
tree19d006c480b604cc7a07b7dc85750562b8eec56c /src/data
parent6483809c6d9c67f1311a64f2572b4fe5881d3a0d (diff)
data: track: remove unneeded explicit {to} on withOriginalRelease call
Diffstat (limited to 'src/data')
-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 718eb07e..118e3db0 100644
--- a/src/data/things/track.js
+++ b/src/data/things/track.js
@@ -424,7 +424,7 @@ export class Track extends Thing {
     // property as null.
     inheritFromOriginalRelease: ({property: originalProperty, allowOverride = false}) =>
       Thing.composite.from(`Track.composite.inheritFromOriginalRelease`, [
-        Track.composite.withOriginalRelease({to: '#originalRelease'}),
+        Track.composite.withOriginalRelease(),
 
         {
           flags: {expose: true, compose: true},
@@ -474,8 +474,8 @@ export class Track extends Thing {
     // Just includes the original release of this track as a dependency, or
     // null, if it's not a rerelease. Note that this will early exit if the
     // original release is specified by reference and that reference doesn't
-    // resolve to anything.
-    withOriginalRelease: ({to: outputDependency = '#originalRelease'}) =>
+    // resolve to anything. Outputs to '#originalRelease' by default.
+    withOriginalRelease: ({to: outputDependency = '#originalRelease'} = {}) =>
       Thing.composite.from(`Track.composite.withOriginalRelease`, [
         Thing.composite.withResolvedReference({
           ref: 'originalReleaseTrackByRef',