This commit is contained in:
@@ -155,7 +155,12 @@ export default {
|
||||
//no content, nothing to process
|
||||
return response;
|
||||
}
|
||||
return response.json();
|
||||
let contentType = response.headers.get("content-type");
|
||||
// console.log("gzapi::JSON method, content type is:", contentType);
|
||||
if (contentType && contentType.includes("json")) {
|
||||
return response.json();
|
||||
}
|
||||
return response;
|
||||
},
|
||||
apiErrorToHumanString(apiError) {
|
||||
//empty error object?
|
||||
|
||||
@@ -213,7 +213,6 @@ function populateSelectionLists(vm) {
|
||||
if (res.error) {
|
||||
window.$gz.errorHandler.handleFormError(res.error, vm);
|
||||
} else {
|
||||
debugger;
|
||||
vm.selectLists.serverLogs = res.data;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user