Fixed commas not created when more than two authors
This commit is contained in:
parent
3996f32e04
commit
82d596994a
|
@ -187,7 +187,7 @@ export default {
|
|||
let authors = bs[b].authors
|
||||
for (const au in authors) {
|
||||
this.books[i].author += authors[au].forename + ' ' + authors[au].lastname
|
||||
if (authors.length > au + 1) {
|
||||
if ((authors.length - 1) > au) {
|
||||
this.books[i].author += ', '
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue