forgot empty arrays are truthy
This commit is contained in:
		
							parent
							
								
									b75bad995a
								
							
						
					
					
						commit
						61049f0d11
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue