mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-07 18:01:42 +00:00
Fix author name matching bug - add optional chaining
This commit is contained in:
parent
6d3404272c
commit
7113f001eb
3 changed files with 3 additions and 3 deletions
|
|
@ -38,7 +38,7 @@ class AuthorController {
|
|||
* @param {Response} res
|
||||
*/
|
||||
async findOne(req, res) {
|
||||
const include = (req.query.include || '').split(',')
|
||||
const include = (req?.query?.include || '').split(',')
|
||||
|
||||
const authorJson = req.author.toOldJSON()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue