added logs
This commit is contained in:
parent
0cc411b0a0
commit
ac52fb7c79
@ -41,6 +41,7 @@
|
|||||||
},
|
},
|
||||||
edit(e) {
|
edit(e) {
|
||||||
this.state.filter = e.target.value;
|
this.state.filter = e.target.value;
|
||||||
|
console.log(this.state.filter);
|
||||||
this.fetchData();
|
this.fetchData();
|
||||||
this.update();
|
this.update();
|
||||||
},
|
},
|
||||||
@ -67,6 +68,7 @@
|
|||||||
this.update();
|
this.update();
|
||||||
},
|
},
|
||||||
async fetchData(){
|
async fetchData(){
|
||||||
|
console.log(this.state.filter);
|
||||||
let data = await this.execQuery(this.state.search, this.state.filter, this.state.id);
|
let data = await this.execQuery(this.state.search, this.state.filter, this.state.id);
|
||||||
this.update({
|
this.update({
|
||||||
items: data.results
|
items: data.results
|
||||||
@ -92,6 +94,7 @@
|
|||||||
} else {
|
} else {
|
||||||
computeHttpRequest = baseHttpRequest+table;
|
computeHttpRequest = baseHttpRequest+table;
|
||||||
}
|
}
|
||||||
|
console.log(computeHttpRequest);
|
||||||
return fetch(computeHttpRequest).then(response => {
|
return fetch(computeHttpRequest).then(response => {
|
||||||
return response.json();
|
return response.json();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user