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