« get me outta code hell

fix contribs on artist pages showing as [Object] - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <towerofnix@gmail.com>2021-03-05 21:57:10 -0400
committer(quasar) nebula <towerofnix@gmail.com>2021-03-05 21:57:10 -0400
commit4dc9ec8a3de5825fe92987711971c4f862c39e5e (patch)
tree3bbe3c95ed03b64fb5c5adc0b6c06bcdcc70c1ad
parent6919e7264d7db78f3580c56798ad377aada99422 (diff)
fix contribs on artist pages showing as [Object]
typescript when /j
-rwxr-xr-xupd8.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/upd8.js b/upd8.js
index e9ebc66d..12549c5c 100755
--- a/upd8.js
+++ b/upd8.js
@@ -3072,7 +3072,7 @@ function writeArtistPage(artist) {
                     ? strings('artistPage.creditList.entry.withArtists.withContribution', {
                         entry,
                         artists: getArtistString(artists, {strings, to}),
-                        contribution: contrib
+                        contribution: contrib.what
                     })
                     : strings('artistPage.creditList.entry.withArtists', {
                         entry,
@@ -3081,7 +3081,7 @@ function writeArtistPage(artist) {
                 : (contrib.what
                     ? strings('artistPage.creditList.entry.withContribution', {
                         entry,
-                        contribution: contrib
+                        contribution: contrib.what
                     })
                     : entry)));