« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/things')
-rw-r--r--src/data/things/MusicVideo.js14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/data/things/MusicVideo.js b/src/data/things/MusicVideo.js
index acdfaa2b..38387a30 100644
--- a/src/data/things/MusicVideo.js
+++ b/src/data/things/MusicVideo.js
@@ -40,21 +40,17 @@ export class MusicVideo extends Thing {
       update: {validate: isStringNonEmpty},
     },
 
-    label: [
-      exposeUpdateValueOrContinue({
-        validate: input.value(isStringNonEmpty),
-      }),
-
-      exitWithoutDependency('title', V('Music video')),
-      exposeConstant(V(null)),
-    ],
+    label: {
+      flags: {update: true, expose: true},
+      update: {validate: isStringNonEmpty},
+    },
 
     unqualifiedDirectory: [
       {
         dependencies: ['title', 'label'],
         compute: (continuation, {title, label}) =>
           continuation({
-            '#name': label ?? title,
+            '#name': label ?? title ?? 'music video',
           }),
       },