From b119249988890273fc4879871eb88decf61a5338 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 5 Apr 2026 09:32:18 -0300 Subject: content, data: simplify title vs label, use null label as intended --- src/data/things/MusicVideo.js | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/data') 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', }), }, -- cgit 1.3.0-6-gf8a5