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