From 65ef0ca31730d2637151778b1965929951ce6562 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 9 Jan 2025 17:58:21 -0400 Subject: 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). --- src/data/composite/wiki-data/withResolvedContribs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/data') 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({ -- cgit 1.3.0-6-gf8a5