diff --git a/dlibrary/static/index.js b/dlibrary/static/index.js index 409e537..813b33a 100644 --- a/dlibrary/static/index.js +++ b/dlibrary/static/index.js @@ -54,7 +54,7 @@ document.addEventListener('DOMContentLoaded', () => { const creators = document.createElement('div'); creators.className = 'card-creators'; let creatorsInfo = `[${work.circle || ''}`; - if (work.authors) { + if (work.authors.length > 0) { let authorList = work.authors[0]; for (let i = 1; i < work.authors.length; ++i) { authorList += `, ${work.authors[i]}`;