No message

This commit is contained in:
Ken Jannette
2018-04-19 11:14:57 -04:00
parent 7e1068eb76
commit 441a396aa7

View File

@@ -25,10 +25,10 @@ class BooksApp extends React.Component {
const id = e.target.name const id = e.target.name
const newShelf = e.target.value const newShelf = e.target.value
console.log(id, newShelf) console.log(id, newShelf)
const changeShelf = this.state.books.filter((book) => { return book.id === id}) let changeShelf = this.state.books.filter((book) => { return book.id === id})
console.log("changeShelf: ", changeShelf) console.log("changeShelf: ", changeShelf)
this.setState({ this.setState({
changeShelf.shelf: changeShelf.newShelf
}) })
} }