From b76e7092340a03f146c377a517b487865f2b3d2f Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 27 Feb 2020 19:14:46 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 6 +----- ayanova/src/components/gz-data-table.vue | 7 ++++--- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 70573091..594638ef 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -42,11 +42,7 @@ CURRENT ROADMAP CURRENT TODOs =-=-=-=-=-=-= -todo: tags in datatable display - - remove the array brackets and the quotation marks - - In wide format the column is really narrow for some reason which is increasing the row height quite a bit - - in wide format can the font be smaller if it's more than a certain number of items - - in narrow it actually looks pretty good + todo: custom fields that are not text in display - currently custom 1 which is a datetime field is not localized diff --git a/ayanova/src/components/gz-data-table.vue b/ayanova/src/components/gz-data-table.vue index cf90643e..232b0c8e 100644 --- a/ayanova/src/components/gz-data-table.vue +++ b/ayanova/src/components/gz-data-table.vue @@ -528,10 +528,11 @@ function buildHeaders(columnData) { //Called by getDataFromApi on retrieval of list with columnData function buildRecords(listData, columndefinitions) { //iterate data, build each object keyed with index name and display set to correct locale filter and then return - if (!listData) { - return; - } + var ret = []; + if (!listData) { + return ret; + } //cache display format stuff var timeZoneName = window.$gz.locale.getTimeZoneName();