« get me outta code hell

data: annotatedReferenceList, etc: default date to null - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/composite/wiki-data/withResolvedAnnotatedReferenceList.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-04-06 18:11:31 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-04-10 16:02:42 -0300
commit3b82da00814a042f5047b6626e6b2ccdcc13c89a (patch)
treeb282145404e8a43202ac4ef19c813beaef4413b2 /src/data/composite/wiki-data/withResolvedAnnotatedReferenceList.js
parenta671ddcc54c4002ab178b9ee0703d7559732875b (diff)
data: annotatedReferenceList, etc: default date to null
We probably can just remove the date altogether, but this
change is external only, not logical.
Diffstat (limited to 'src/data/composite/wiki-data/withResolvedAnnotatedReferenceList.js')
-rw-r--r--src/data/composite/wiki-data/withResolvedAnnotatedReferenceList.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data/composite/wiki-data/withResolvedAnnotatedReferenceList.js b/src/data/composite/wiki-data/withResolvedAnnotatedReferenceList.js
index c9a7c058..56d8bbf1 100644
--- a/src/data/composite/wiki-data/withResolvedAnnotatedReferenceList.js
+++ b/src/data/composite/wiki-data/withResolvedAnnotatedReferenceList.js
@@ -24,7 +24,7 @@ export default templateCompositeFrom({
 
     date: input({
       validate: isDate,
-      acceptsNull: true,
+      defaultValue: null,
     }),
 
     reference: input({type: 'string', defaultValue: 'reference'}),