From 04f906baef6262d3ea1a5cd68354667dcb127d12 Mon Sep 17 00:00:00 2001 From: Fauvet Matthis Date: Fri, 21 Jun 2024 18:09:53 +0200 Subject: [PATCH] modified code --- onzer.riot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/onzer.riot b/onzer.riot index ac40780..a3165b5 100644 --- a/onzer.riot +++ b/onzer.riot @@ -68,14 +68,14 @@ }, async fetchData(){ let data = await this.execQuery(); + console.log(this.state.search); + console.log(this.state.items); this.state = { items: data.results }; }, execQuery(){ return fetch("https://dwarves.iut-fbleau.fr/~fauvet/api/"+this.state.search).then(response => { - console.log(this.state.search); - console.log(response.json()); return response.json(); }); },