From 65609be45659139706833833b1da29adbcc8a85e Mon Sep 17 00:00:00 2001 From: Ken Jannette Date: Thu, 19 Apr 2018 10:29:07 -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 57e8be1..0981e3a 100755 --- a/src/App.js +++ b/src/App.js @@ -26,7 +26,7 @@ class BooksApp extends React.Component { const id = e.target.name const shelf = e.target.value // console.log(id, shelf) - const changeShelf = this.state.books.filter((id) => this.state.books.id === id) + const changeShelf = this.state.books.filter((id, book) => book.id === id) console.log("changeShelf", changeShelf) }