⚡ Refactors NetData widget data requeest
This commit is contained in:
@@ -33,9 +33,7 @@ export default {
|
||||
methods: {
|
||||
/* Make GET request to NetData */
|
||||
fetchData() {
|
||||
this.makeRequest(this.endpoint).then(
|
||||
(response) => { this.processData(response); },
|
||||
);
|
||||
this.makeRequest(this.endpoint).then(this.processData);
|
||||
},
|
||||
/* Assign data variables to the returned data */
|
||||
processData(inputData) {
|
||||
|
||||
Reference in New Issue
Block a user