From cf23ca6bbe925a1e0628690b245395922e82f2ae Mon Sep 17 00:00:00 2001 From: xenofem Date: Thu, 25 Jan 2024 04:16:26 -0500 Subject: [PATCH] fix case with no authors --- dlibrary/static/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlibrary/static/index.js b/dlibrary/static/index.js index 813b33a..8d48595 100644 --- a/dlibrary/static/index.js +++ b/dlibrary/static/index.js @@ -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);