« get me outta code hell

data: withOtherReleases: empty array when original release not found - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/composite/things/track/withOtherReleases.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-02-06 08:24:57 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-02-06 08:33:41 -0400
commitbc85c656628a66f5f4d3dde0bed65463ca7bc7a3 (patch)
tree6d15179b01d4ddec745ea7cb5a62ba9fe1b636c5 /src/data/composite/things/track/withOtherReleases.js
parent137bdf4107ccbb602ea99456caf45be847658564 (diff)
data: withOtherReleases: empty array when original release not found
Diffstat (limited to 'src/data/composite/things/track/withOtherReleases.js')
-rw-r--r--src/data/composite/things/track/withOtherReleases.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/data/composite/things/track/withOtherReleases.js b/src/data/composite/things/track/withOtherReleases.js
index 84420cf..f8c1c3f 100644
--- a/src/data/composite/things/track/withOtherReleases.js
+++ b/src/data/composite/things/track/withOtherReleases.js
@@ -17,6 +17,7 @@ export default templateCompositeFrom({
 
     withOriginalRelease({
       selfIfOriginal: input.value(true),
+      notFoundValue: input.value([]),
     }),
 
     {