No message

This commit is contained in:
Ken Jannette
2018-04-19 12:33:45 -04:00
parent 52a4ba9398
commit 0289d7b3d1
2 changed files with 5 additions and 4 deletions

View File

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