This commit is contained in:
@@ -302,8 +302,9 @@ function fetchTranslatedText(vm) {
|
||||
//
|
||||
function getServerInfo(vm) {
|
||||
return window.$gz.api.get("server-info").then(res => {
|
||||
if (res.error) {
|
||||
throw res.error;
|
||||
//We never expect there to be no data here
|
||||
if (!res.data) {
|
||||
throw res;
|
||||
} else {
|
||||
vm.serverInfo = res.data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user