diff --git a/ayanova/src/components/gz-data-table.vue b/ayanova/src/components/gz-data-table.vue index 799d897d..588c6b44 100644 --- a/ayanova/src/components/gz-data-table.vue +++ b/ayanova/src/components/gz-data-table.vue @@ -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