From c41302ccde3358afd25b3d3fe21afdd73552ae2b Mon Sep 17 00:00:00 2001 From: Fauvet Matthis Date: Fri, 21 Jun 2024 16:38:05 +0200 Subject: [PATCH] modified code --- onzer.riot | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 => {