added logs

This commit is contained in:
Matthis FAUVET 2024-06-21 19:44:55 +02:00
parent 0cc411b0a0
commit ac52fb7c79

View File

@ -41,6 +41,7 @@
},
edit(e) {
this.state.filter = e.target.value;
console.log(this.state.filter);
this.fetchData();
this.update();
},
@ -67,6 +68,7 @@
this.update();
},
async fetchData(){
console.log(this.state.filter);
let data = await this.execQuery(this.state.search, this.state.filter, this.state.id);
this.update({
items: data.results
@ -92,6 +94,7 @@
} else {
computeHttpRequest = baseHttpRequest+table;
}
console.log(computeHttpRequest);
return fetch(computeHttpRequest).then(response => {
return response.json();
});