diff --git a/src/App.js b/src/App.js index 8b93622..4e2967c 100755 --- a/src/App.js +++ b/src/App.js @@ -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;