diff options
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/dependencies/generateTrackInfoPage.js | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/content/dependencies/generateTrackInfoPage.js b/src/content/dependencies/generateTrackInfoPage.js index 336cebbb..eae782bc 100644 --- a/src/content/dependencies/generateTrackInfoPage.js +++ b/src/content/dependencies/generateTrackInfoPage.js @@ -93,14 +93,8 @@ export default { // Section: Contributors - if (!empty(track.contributorContribs)) { - const contributors = sections.contributors = {}; - - contributors.list = - relation('generateContributionList', track.contributorContribs); - } - - // Section: Referenced tracks + relations.contributorContributionList = + relation('generateContributionList', track.contributorContribs); relations.referencedTracksList = relation('generateTrackList', track.referencedTracks); @@ -269,15 +263,15 @@ export default { relations.otherReleasesList, ]), - sec.contributors && [ + html.tags([ relations.contentHeading.clone() .slots({ attributes: {id: 'contributors'}, title: language.$('releaseInfo.contributors'), }), - sec.contributors.list, - ], + relations.contributorContributionList, + ]), html.tags([ relations.contentHeading.clone() |