From 1f8928143b1d6f02168eaecee7694429077c9ae1 Mon Sep 17 00:00:00 2001 From: Fauvet Matthis Date: Fri, 21 Jun 2024 18:11:49 +0200 Subject: [PATCH] added logs --- onzer.riot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/onzer.riot b/onzer.riot index a3165b5..365f015 100644 --- a/onzer.riot +++ b/onzer.riot @@ -69,10 +69,11 @@ async fetchData(){ let data = await this.execQuery(); console.log(this.state.search); - console.log(this.state.items); + console.log(data.results); this.state = { items: data.results }; + console.log(this.state.items); }, execQuery(){ return fetch("https://dwarves.iut-fbleau.fr/~fauvet/api/"+this.state.search).then(response => {