Bug fix in SearchPage

This commit is contained in:
Ken Jannette
2018-04-20 18:49:05 -04:00
parent 33c1dad744
commit b3768b5026

View File

@@ -23,7 +23,7 @@ class BooksApp extends React.Component {
getAll().then((books) => { getAll().then((books) => {
this.setState({ books }) this.setState({ books })
}) })
} };
onResultSelect = (e) => { onResultSelect = (e) => {
@@ -41,8 +41,8 @@ class BooksApp extends React.Component {
newBooks.forEach((book) => { newBooks.forEach((book) => {
update(book, book.shelf) update(book, book.shelf)
}) })
history.push('/') history.push('/');
} };
onSelectChange = (e) => { onSelectChange = (e) => {
const id = e.target.name const id = e.target.name
@@ -88,6 +88,6 @@ class BooksApp extends React.Component {
</Router> </Router>
) )
} }
} };
export default BooksApp export default BooksApp