Fixed bug in onSearch in SearchPage component
This commit is contained in:
@@ -17,7 +17,7 @@ class SearchPage extends Component {
|
|||||||
search(query).then((results) => {
|
search(query).then((results) => {
|
||||||
for (var result of results) {
|
for (var result of results) {
|
||||||
for (var book of books) {
|
for (var book of books) {
|
||||||
if (result === book) {
|
if (result.title === book.title) {
|
||||||
result.shelf = book.shelf
|
result.shelf = book.shelf
|
||||||
console.log(result)
|
console.log(result)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user