« get me outta code hell

data: withCoverArtDate refactor, make Album.coverArtDate updatable - 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:
author(quasar) nebula <qznebula@protonmail.com>2024-03-07 12:27:34 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-06-12 17:26:44 -0300
commit7318aa7dbab75ef53ad2eb5e9d256fd21efdbd7b (patch)
tree22906882a7455aad0d1b9742cea98bad3ac3b748 /src/data/things
parent1cf56b3364896cd0939b85b8b2fcb51155f9b69e (diff)
data: withCoverArtDate refactor, make Album.coverArtDate updatable
Diffstat (limited to 'src/data/things')
-rw-r--r--src/data/things/album.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/data/things/album.js b/src/data/things/album.js
index b0a46af1..ae5226ba 100644
--- a/src/data/things/album.js
+++ b/src/data/things/album.js
@@ -80,6 +80,10 @@ export class Album extends Thing {
     coverArtDate: [
       // TODO: Why does this fall back, but Track.coverArtDate doesn't?
       withCoverArtDate({
+        from: input.updateValue({
+          validate: isDate,
+        }),
+
         fallback: input.value(true),
       }),