« get me outta code hell

data: minor fixes - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-09-21 16:04:06 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-09-21 16:04:21 -0300
commit4852931ecf2c7ce63851ea6f3a60c9d5b142ae6f (patch)
treec08811d15da24810ed068887a49b63d24d7c72f1 /src
parent998cc860302e3fb1e7a40c055e8ac66f195b1366 (diff)
data: minor fixes
Diffstat (limited to 'src')
-rw-r--r--src/data/things/thing.js2
-rw-r--r--src/data/things/track.js7
2 files changed, 5 insertions, 4 deletions
diff --git a/src/data/things/thing.js b/src/data/things/thing.js
index ca1018eb..77f549fe 100644
--- a/src/data/things/thing.js
+++ b/src/data/things/thing.js
@@ -602,7 +602,7 @@ export const withResolvedReference = templateCompositeFrom({
         }
 
         return continuation.raiseOutput({
-          ['#resolvedReference']: match,
+          ['#resolvedReference']: match ?? null,
         });
       },
     },
diff --git a/src/data/things/track.js b/src/data/things/track.js
index 5ccf4f8b..54b2c124 100644
--- a/src/data/things/track.js
+++ b/src/data/things/track.js
@@ -638,7 +638,9 @@ export const withHasUniqueCoverArt = templateCompositeFrom({
       dependencies: ['disableUniqueCoverArt'],
       compute: (continuation, {disableUniqueCoverArt}) =>
         (disableUniqueCoverArt
-          ? continuation.raiseOutput({into: false})
+          ? continuation.raiseOutput({
+              ['#hasUniqueCoverArt']: false,
+            })
           : continuation()),
     },
 
@@ -652,8 +654,7 @@ export const withHasUniqueCoverArt = templateCompositeFrom({
         (empty(contribsFromTrack)
           ? continuation()
           : continuation.raiseOutput({
-              ['#hasUniqueCoverArt']:
-                true,
+              ['#hasUniqueCoverArt']: true,
             })),
     },