From 441a396aa7cbf40dd90b9a88e406e7cbeace31d4 Mon Sep 17 00:00:00 2001 From: Ken Jannette Date: Thu, 19 Apr 2018 11:14:57 -0400 Subject: [PATCH] No message --- src/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.js b/src/App.js index f9e18d8..7baf2a2 100755 --- a/src/App.js +++ b/src/App.js @@ -25,10 +25,10 @@ class BooksApp extends React.Component { const id = e.target.name const newShelf = e.target.value 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) this.setState({ - changeShelf.shelf: changeShelf.newShelf + }) }