From 71f0ca1e23b16f175b825f5182492e4f67b0032e Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 29 Jan 2020 22:11:01 +0000 Subject: [PATCH] --- ayanova/src/components/gz-data-table.vue | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/ayanova/src/components/gz-data-table.vue b/ayanova/src/components/gz-data-table.vue index c3dcefa9..3d709708 100644 --- a/ayanova/src/components/gz-data-table.vue +++ b/ayanova/src/components/gz-data-table.vue @@ -250,7 +250,20 @@ async function fetchLocalizedHeaderNames(columnData) { //Called by getDataFromApi on retrieval of list with columnData function buildRecords(listData) { - //iterate data, build each object keyed with index name and then return + //iterate data, build each object keyed with index name and display set to correct locale filter and then return + if (!listData) { + return; + } + var ret = []; + //comes as an array of arrays, needs to leave as an array of objects representing each row + for (var iRow = 0; iRow < listData.length; iRow++) { + var row = listData[iRow]; + //iterate row and build object representing row data keyed to index + //first column is the default column so skip over it for now + for (var iColumn = 1; iColumn < listData.length; iColumn++) { + var column = row[iColumn]; + } + } } //DataTable component