From 8fbc3499ec5fe6ba7e1d141998ae32fef26fcd2b Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 25 Dec 2024 17:52:12 -0400 Subject: data, content: Group.closelyLinkedArtists: thing -> artist --- src/data/things/group.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/data') diff --git a/src/data/things/group.js b/src/data/things/group.js index 4a790140..68f7545d 100644 --- a/src/data/things/group.js +++ b/src/data/things/group.js @@ -34,6 +34,9 @@ export class Group extends Thing { class: input.value(Artist), find: input.value(find.artist), data: 'artistData', + + reference: input.value('artist'), + thing: input.value('artist'), }), featuredAlbums: referenceList({ @@ -123,7 +126,11 @@ export class Group extends Thing { 'Closely Linked Artists': { property: 'closelyLinkedArtists', - transform: parseAnnotatedReferences, + transform: value => + parseAnnotatedReferences(value, { + referenceField: 'Artist', + referenceProperty: 'artist', + }), }, 'Featured Albums': {property: 'featuredAlbums'}, -- cgit 1.3.0-6-gf8a5