From f260cc13f20bd559648a85829fa41a3eda026e1b Mon Sep 17 00:00:00 2001 From: Ken Jannette Date: Thu, 19 Apr 2018 15:06:35 -0400 Subject: [PATCH] No message --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;