From d3c7ba896e5e249dd6b3357fa067c9128b651645 Mon Sep 17 00:00:00 2001 From: Fauvet Matthis Date: Fri, 21 Jun 2024 18:16:09 +0200 Subject: [PATCH] added logs --- onzer.riot | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/onzer.riot b/onzer.riot index 0928bd7..30d0192 100644 --- a/onzer.riot +++ b/onzer.riot @@ -63,10 +63,11 @@ this.song_style = "isActivate"; this.state.search = "songs"; } - this.fetchData() + this.fetchData(e) this.update(); }, - async fetchData(){ + async fetchData(event){ + event.preventDefault(); let data = await this.execQuery(); console.log(this.state.search); console.log(data.results); @@ -86,6 +87,7 @@ this.artist_style = "isDeactivate"; this.song_style = "isDeactivate"; } + }