From 36d72d8f910dc0b9200224236d67eec605290b56 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 10 Apr 2024 20:24:34 -0300 Subject: data, content: various property & thing-type matches --- .../dependencies/generateArtistInfoPageTracksChunkItem.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/content') diff --git a/src/content/dependencies/generateArtistInfoPageTracksChunkItem.js b/src/content/dependencies/generateArtistInfoPageTracksChunkItem.js index 9674eb4f..d7460c80 100644 --- a/src/content/dependencies/generateArtistInfoPageTracksChunkItem.js +++ b/src/content/dependencies/generateArtistInfoPageTracksChunkItem.js @@ -1,5 +1,4 @@ import {empty} from '#sugar'; -import {isArtistContribution, isContributorContribution} from '#wiki-data'; export default { contentDependencies: [ @@ -20,11 +19,11 @@ export default { const creditedAsArtist = contribs - .some(isArtistContribution); + .some(contrib => contrib.isArtistContribution); const creditedAsContributor = contribs - .some(isContributorContribution); + .some(contrib => contrib.isContributorContribution); const annotatedContribs = contribs @@ -32,11 +31,11 @@ export default { const annotatedArtistContribs = annotatedContribs - .filter(isArtistContribution); + .filter(contrib => contrib.isArtistContribution); const annotatedContributorContribs = annotatedContribs - .filter(isContributorContribution); + .filter(contrib => contrib.isContributorContribution); // Don't display annotations associated with crediting in the // Contributors field if the artist is also credited as an Artist -- cgit 1.3.0-6-gf8a5