« get me outta code hell

data: declare {update} in higher-context locations - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/album.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-09-19 10:16:52 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-09-19 10:16:52 -0300
commit33558828e70e4dd942bec1fbdb8aea3819ed8a19 (patch)
tree137bb45eb742c321fd4c221f15fd9412c1679ec9 /src/data/things/album.js
parentc6c1a6be4ee817c65ccc994cd6ae68a835aa406e (diff)
data: declare {update} in higher-context locations
Diffstat (limited to 'src/data/things/album.js')
-rw-r--r--src/data/things/album.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/data/things/album.js b/src/data/things/album.js
index c0042ae..ec133a3 100644
--- a/src/data/things/album.js
+++ b/src/data/things/album.js
@@ -53,11 +53,12 @@ export class Album extends Thing {
 
     coverArtDate: [
       exitWithoutContribs({contribs: 'coverArtistContribs'}),
-      exposeUpdateValueOrContinue(),
-      exposeDependency({
-        dependency: 'date',
-        update: {validate: isDate},
+
+      exposeUpdateValueOrContinue({
+        validate: input.value(isDate),
       }),
+
+      exposeDependency({dependency: 'date'}),
     ],
 
     coverArtFileExtension: [