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"; } + }