From 403ef7b3048bdbb33005866576a876fe85fda8f9 Mon Sep 17 00:00:00 2001 From: Fauvet Matthis Date: Fri, 21 Jun 2024 16:31:43 +0200 Subject: [PATCH] modified code --- onzer.riot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/onzer.riot b/onzer.riot index 8ee1a72..103925c 100644 --- a/onzer.riot +++ b/onzer.riot @@ -71,9 +71,10 @@ this.update(); }, async list(){ + let data = await props.items; this.state = { placeholder: "Rechercher dans les songs", - items: await this.fetchData() + items: data.results; }; this.update(); },