No msg
This commit is contained in:
@@ -15,10 +15,10 @@ class SearchPage extends Component {
|
|||||||
const books = this.props.books
|
const books = this.props.books
|
||||||
if (query.length > 3) {
|
if (query.length > 3) {
|
||||||
search(query).then((results) => {
|
search(query).then((results) => {
|
||||||
for (var i = 0; i < books.length; i++) {
|
for (var result of results) {
|
||||||
for (var j = 0; j < results.length; j++) {
|
for (var book of books) {
|
||||||
if (results[j] === books[i]) {
|
if (result === book) {
|
||||||
results[j].shelf = books[i].shelf
|
result.shelf = book.shelf
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user