« get me outta code hell

error-free basic full build - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page/artist.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-02-24 22:59:04 -0400
committer(quasar) nebula <qznebula@protonmail.com>2022-02-24 22:59:04 -0400
commit5057b24b53f3866cf9f34a6fdfa0d1345c0d8be0 (patch)
tree80c4d41078d1b23d6f3d8279c1470e84f8a7615a /src/page/artist.js
parent71de050864a42afcaeb409c11b9c792653cf2f1b (diff)
error-free basic full build
Diffstat (limited to 'src/page/artist.js')
-rw-r--r--src/page/artist.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/page/artist.js b/src/page/artist.js
index b89107f..d012805 100644
--- a/src/page/artist.js
+++ b/src/page/artist.js
@@ -32,11 +32,7 @@ export function targets({wikiData}) {
 export function write(artist, {wikiData}) {
     const { groupData, wikiInfo } = wikiData;
 
-    const {
-        name,
-        urls = [],
-        note = ''
-    } = artist;
+    const { name, urls, note } = artist;
 
     const artThingsAll = sortByDate(unique([
         ...artist.albumsAsCoverArtist ?? [],
@@ -305,7 +301,7 @@ export function write(artist, {wikiData}) {
                             </blockquote>
                             <hr>
                         `}
-                        ${urls.length && `<p>${strings('releaseInfo.visitOn', {
+                        ${urls?.length && `<p>${strings('releaseInfo.visitOn', {
                             links: strings.list.or(urls.map(url => fancifyURL(url, {strings})))
                         })}</p>`}
                         ${hasGallery && `<p>${strings('artistPage.viewArtGallery', {