Fixed: UI Errors in Add Book page

Fixes #1906
This commit is contained in:
Qstick
2022-11-03 16:30:54 -05:00
parent f8324b3c92
commit 7c74a8df01
3 changed files with 17 additions and 15 deletions
+1 -2
View File
@@ -148,11 +148,10 @@ class AddNewItem extends Component {
);
} else if (item.book) {
const book = item.book;
const edition = book.editions.find((x) => x.monitored);
return (
<AddNewBookSearchResultConnector
key={item.id}
isExistingBook={'id' in edition && edition.id !== 0}
isExistingBook={'id' in book && book.id !== 0}
isExistingAuthor={'id' in book.author && book.author.id !== 0}
{...book}
/>