fix case with no authors

This commit is contained in:
xenofem 2024-01-25 04:16:26 -05:00
parent 61049f0d11
commit cf23ca6bbe

View file

@ -59,8 +59,9 @@ document.addEventListener('DOMContentLoaded', () => {
for (let i = 1; i < work.authors.length; ++i) { for (let i = 1; i < work.authors.length; ++i) {
authorList += `, ${work.authors[i]}`; authorList += `, ${work.authors[i]}`;
} }
creatorsInfo += (work.circle ? ` (${authorList})]` : `${authorList}]`); creatorsInfo += (work.circle ? ` (${authorList})` : `${authorList}`);
} }
creatorsInfo += ']';
creators.textContent = creatorsInfo; creators.textContent = creatorsInfo;
link.appendChild(creators); link.appendChild(creators);