Fix:Error adding new series if a series has a null title #3622

This commit is contained in:
advplyr 2024-11-18 07:59:02 -06:00
parent 778256ca16
commit a5e38d1473
3 changed files with 7 additions and 4 deletions

View file

@ -662,7 +662,7 @@ module.exports = {
},
attributes: ['id', 'name']
})
series.forEach((s) => data.series.push({ id: s.id, name: s.name }))
series.forEach((s) => data.series.push({ id: s.id, name: s.name || 'No Title' }))
const authors = await Database.authorModel.findAll({
where: {