Fixed: Error adding book to existing author in incognito session

This commit is contained in:
ta264 2021-06-30 21:32:59 +01:00
parent b57ba3d6e2
commit ca8f768f84

View file

@ -5,7 +5,9 @@ function getNewBook(book, payload) {
searchForNewBook = false
} = payload;
getNewAuthor(book.author, payload);
if (!('id' in book.author) || book.author.id === 0) {
getNewAuthor(book.author, payload);
}
book.addOptions = {
searchForNewBook