diff --git a/onzer.riot b/onzer.riot index a3165b5..365f015 100644 --- a/onzer.riot +++ b/onzer.riot @@ -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 => {