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