From 9699005e9e900ccbafb3d14ac89e248ee2b66d62 Mon Sep 17 00:00:00 2001 From: Fauvet Matthis Date: Fri, 21 Jun 2024 16:32:53 +0200 Subject: [PATCH] modified code --- onzer.riot | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/onzer.riot b/onzer.riot index 103925c..3839075 100644 --- a/onzer.riot +++ b/onzer.riot @@ -65,16 +65,13 @@ this.song_style = "isActivate"; this.state.search = "songs"; } - if(old_search != this.state.search) { - this.list(); - } - this.update(); + if(old_search != this.state.search){this.list();} + this.update(); }, async list(){ - let data = await props.items; this.state = { placeholder: "Rechercher dans les songs", - items: data.results; + items: await this.fetchData() }; this.update(); },