« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/data/composite/wiki-properties/referencedArtworkList.js9
-rw-r--r--src/data/things/album.js15
-rw-r--r--src/data/things/track.js6
3 files changed, 3 insertions, 27 deletions
diff --git a/src/data/composite/wiki-properties/referencedArtworkList.js b/src/data/composite/wiki-properties/referencedArtworkList.js
index f9d5c2f8..66809aaa 100644
--- a/src/data/composite/wiki-properties/referencedArtworkList.js
+++ b/src/data/composite/wiki-properties/referencedArtworkList.js
@@ -9,13 +9,6 @@ export default templateCompositeFrom({
 
   compose: false,
 
-  inputs: {
-    date: input({
-      validate: isDate,
-      acceptsNull: true,
-    }),
-  },
-
   steps: () => [
     {
       compute: (continuation) => continuation({
@@ -31,7 +24,7 @@ export default templateCompositeFrom({
       referenceType: input.value(['album', 'track']),
       data: 'artworkData',
       find: '#find',
-      date: input('date'),
+      date: input.value(null),
     }),
   ],
 });
diff --git a/src/data/things/album.js b/src/data/things/album.js
index 9137ac31..32905624 100644
--- a/src/data/things/album.js
+++ b/src/data/things/album.js
@@ -248,20 +248,7 @@ export class Album extends Thing {
         value: input.value([]),
       }),
 
-      {
-        dependencies: ['coverArtDate', 'date'],
-        compute: (continuation, {
-          coverArtDate,
-          date,
-        }) => continuation({
-          ['#date']:
-            coverArtDate ?? date,
-        }),
-      },
-
-      referencedArtworkList({
-        date: '#date',
-      }),
+      referencedArtworkList(),
     ],
 
     // Update only
diff --git a/src/data/things/track.js b/src/data/things/track.js
index 6645008c..4679d78b 100644
--- a/src/data/things/track.js
+++ b/src/data/things/track.js
@@ -334,11 +334,7 @@ export class Track extends Thing {
         value: input.value([]),
       }),
 
-      withTrackArtDate(),
-
-      referencedArtworkList({
-        date: '#trackArtDate',
-      }),
+      referencedArtworkList(),
     ],
 
     // Update only