« 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-18 22:56:04 -0300
commitea2e91a7ef5c38ecea57222601eae469e7d700f4 (patch)
treeef6255f242501ba4babf7f9fb6ae9abdfecf38bb /src/data/things
parentfbdf770209d984133ac081ba455f195220613fd2 (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),
       }),