Fixed: Author not found error when deleting book

Fixes #403
pull/422/head
ta264 4 years ago
parent 7fe8702584
commit ba92586b8b

@ -35,7 +35,7 @@ class DeleteBookModalContentConnector extends Component {
this.props.onModalClose(true); this.props.onModalClose(true);
this.props.push(`${window.Readarr.urlBase}/author/${this.props.titleSlug}`); this.props.push(`${window.Readarr.urlBase}/author/${this.props.authorSlug}`);
} }
// //
@ -53,7 +53,7 @@ class DeleteBookModalContentConnector extends Component {
DeleteBookModalContentConnector.propTypes = { DeleteBookModalContentConnector.propTypes = {
bookId: PropTypes.number.isRequired, bookId: PropTypes.number.isRequired,
titleSlug: PropTypes.string.isRequired, authorSlug: PropTypes.string.isRequired,
push: PropTypes.func.isRequired, push: PropTypes.func.isRequired,
onModalClose: PropTypes.func.isRequired, onModalClose: PropTypes.func.isRequired,
deleteBook: PropTypes.func.isRequired deleteBook: PropTypes.func.isRequired

@ -496,7 +496,7 @@ class BookDetails extends Component {
<DeleteBookModal <DeleteBookModal
isOpen={isDeleteBookModalOpen} isOpen={isDeleteBookModalOpen}
bookId={id} bookId={id}
titleSlug={author.titleSlug} authorSlug={author.titleSlug}
onModalClose={this.onDeleteBookModalClose} onModalClose={this.onDeleteBookModalClose}
/> />

Loading…
Cancel
Save