forgot empty arrays are truthy
This commit is contained in:
parent
b75bad995a
commit
61049f0d11
|
@ -54,7 +54,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||||
const creators = document.createElement('div');
|
const creators = document.createElement('div');
|
||||||
creators.className = 'card-creators';
|
creators.className = 'card-creators';
|
||||||
let creatorsInfo = `[${work.circle || ''}`;
|
let creatorsInfo = `[${work.circle || ''}`;
|
||||||
if (work.authors) {
|
if (work.authors.length > 0) {
|
||||||
let authorList = work.authors[0];
|
let authorList = work.authors[0];
|
||||||
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]}`;
|
||||||
|
|
Loading…
Reference in a new issue