From bab67f94026bafc7a37652d84ea526fa967bb347 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 29 Jan 2020 21:59:46 +0000 Subject: [PATCH] --- ayanova/src/components/gz-data-table.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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