diff --git a/onzer.riot b/onzer.riot index 3839075..6469646 100644 --- a/onzer.riot +++ b/onzer.riot @@ -69,11 +69,13 @@ this.update(); }, async list(){ - this.state = { + let data = await this.fetchData(); + console.log(data); + /*this.state = { placeholder: "Rechercher dans les songs", items: await this.fetchData() }; - this.update(); + this.update();*/ }, fetchData(){ return fetch("https://dwarves.iut-fbleau.fr/~fauvet/api/"+this.state.search+"").then(response => {