fix case with no authors
This commit is contained in:
parent
61049f0d11
commit
cf23ca6bbe
|
@ -59,8 +59,9 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||
for (let i = 1; i < work.authors.length; ++i) {
|
||||
authorList += `, ${work.authors[i]}`;
|
||||
}
|
||||
creatorsInfo += (work.circle ? ` (${authorList})]` : `${authorList}]`);
|
||||
creatorsInfo += (work.circle ? ` (${authorList})` : `${authorList}`);
|
||||
}
|
||||
creatorsInfo += ']';
|
||||
creators.textContent = creatorsInfo;
|
||||
link.appendChild(creators);
|
||||
|
||||
|
|
Loading…
Reference in a new issue