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