This commit is contained in:
2020-01-29 21:59:46 +00:00
parent ec6cf3b09c
commit bab67f9402

View File

@@ -124,13 +124,10 @@ export default {
window.$gz.api.get(listUrl).then(res => {
that.loading = false;
that.totalItems = res.paging.count;
console.log("About to call fetchlocalizedheadernames");
//This is how to call an async function and await it from sync code
(async function() {
//Make sure the locale keys are fetched
await fetchLocalizedHeaderNames(res.columns);
console.log(
"Back from fetch localized header names, now can bjuild headers"
);
//build that.headers here
that.headers = buildHeaders(res.columns);
//Post process data here and then set that.records