This commit is contained in:
@@ -559,14 +559,14 @@ async function initForm(vm) {
|
||||
await fetchTranslatedText(vm);
|
||||
let res = await window.$gz.api.get("license");
|
||||
//We never expect there to be no data here
|
||||
if (!res.data) {
|
||||
if (!res.hasOwnProperty("data")) {
|
||||
throw res;
|
||||
}
|
||||
vm.currentLicenseInfo = res.data.license;
|
||||
|
||||
res = await window.$gz.api.get("license/database-empty");
|
||||
//We never expect there to be no data here
|
||||
if (!res.data) {
|
||||
if (!res.hasOwnProperty("data")) {
|
||||
throw res;
|
||||
}
|
||||
vm.dbIsEmpty = res.data;
|
||||
|
||||
@@ -291,7 +291,7 @@ async function fetchTranslatedText(vm) {
|
||||
async function getServerInfo(vm) {
|
||||
let res = await window.$gz.api.get("server-info");
|
||||
//We never expect there to be no data here
|
||||
if (!res.data) {
|
||||
if (!res.hasOwnProperty("data")) {
|
||||
throw res;
|
||||
} else {
|
||||
vm.serverInfo = res.data;
|
||||
|
||||
@@ -164,7 +164,7 @@ export default {
|
||||
//Does the database need to be erased?
|
||||
let res = await window.$gz.api.get("license/database-empty");
|
||||
//We never expect there to be no data here
|
||||
if (!res.data) {
|
||||
if (!res.hasOwnProperty("data")) {
|
||||
throw res;
|
||||
}
|
||||
if (res.data != true) {
|
||||
|
||||
Reference in New Issue
Block a user