mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-06 07:25:03 +02:00
Fix:Crash when author is set without a name #1934
This commit is contained in:
parent
24b9ac6a68
commit
c2793fe29b
2 changed files with 5 additions and 2 deletions
|
@ -57,7 +57,10 @@ class Author {
|
|||
|
||||
setData(data, libraryId) {
|
||||
this.id = uuidv4()
|
||||
this.name = data.name
|
||||
if (!data.name) {
|
||||
Logger.error(`[Author] setData: Setting author data without a name`, data)
|
||||
}
|
||||
this.name = data.name || ''
|
||||
this.description = data.description || null
|
||||
this.asin = data.asin || null
|
||||
this.imagePath = data.imagePath || null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue