From dafe868cb6dbaff817c1e00e8378cafc114fb118 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 29 Jan 2020 22:36:30 +0000 Subject: [PATCH] --- ayanova/src/components/gz-data-table.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ayanova/src/components/gz-data-table.vue b/ayanova/src/components/gz-data-table.vue index 3d709708..240ba715 100644 --- a/ayanova/src/components/gz-data-table.vue +++ b/ayanova/src/components/gz-data-table.vue @@ -255,15 +255,21 @@ function buildRecords(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 o = {}; + for (var iColumn = 1; iColumn < row.length; iColumn++) { var column = row[iColumn]; + + o[iColumn] = column.v; } + ret.push(o); } + return ret; } //DataTable component