Fixed: Error adding book to existing author in incognito session

pull/1304/head
ta264 4 years ago
parent b57ba3d6e2
commit ca8f768f84

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

Loading…
Cancel
Save