added logs
This commit is contained in:
parent
04f906baef
commit
1f8928143b
@ -69,10 +69,11 @@
|
||||
async fetchData(){
|
||||
let data = await this.execQuery();
|
||||
console.log(this.state.search);
|
||||
console.log(this.state.items);
|
||||
console.log(data.results);
|
||||
this.state = {
|
||||
items: data.results
|
||||
};
|
||||
console.log(this.state.items);
|
||||
},
|
||||
execQuery(){
|
||||
return fetch("https://dwarves.iut-fbleau.fr/~fauvet/api/"+this.state.search).then(response => {
|
||||
|
Loading…
Reference in New Issue
Block a user