« get me outta code hell

data: withResolvedContribs: fix bad availability filter - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/composite
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-01-09 17:58:21 -0400
committer(quasar) nebula <qznebula@protonmail.com>2025-01-09 17:58:21 -0400
commit65ef0ca31730d2637151778b1965929951ce6562 (patch)
treee615fcf4f786fb32287bad0a45234b6f9de5f0b2 /src/data/composite
parentf25e61a530ea11925bb54cbd234003f2ff99b276 (diff)
data: withResolvedContribs: fix bad availability filter
Was based on contrib.thing, which is always present.

These steps are meant to filter based on the availability of
each contribution's artist, since that's a forward reference
that may be unavailable in given artistData.

Introduced alongside raiseResolvedReferenceList in
commit 65ff7444 (i.e. 11/16/2024).
Diffstat (limited to 'src/data/composite')
-rw-r--r--src/data/composite/wiki-data/withResolvedContribs.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data/composite/wiki-data/withResolvedContribs.js b/src/data/composite/wiki-data/withResolvedContribs.js
index b4119604..fd3d8a0d 100644
--- a/src/data/composite/wiki-data/withResolvedContribs.js
+++ b/src/data/composite/wiki-data/withResolvedContribs.js
@@ -136,11 +136,11 @@ export default templateCompositeFrom({
 
     withPropertyFromList({
       list: '#contributions',
-      property: input.value('thing'),
+      property: input.value('artist'),
     }),
 
     withAvailabilityFilter({
-      from: '#contributions.thing',
+      from: '#contributions.artist',
     }),
 
     raiseResolvedReferenceList({