No message

This commit is contained in:
Ken Jannette
2018-04-19 15:06:35 -04:00
parent 2e8aea310e
commit f260cc13f2

View File

@@ -24,7 +24,7 @@ class BooksApp extends React.Component {
onSelectChange = (e) => {
const id = e.target.name
const newShelf = e.target.value
const books = this.state.books.slice();
const books = this.state.books
books.forEach((book) => {
if (book.id === id) {
book.shelf = newShelf;