diff --git a/controllets/dataset-table-controllet/dataset-table-controllet.html b/controllets/dataset-table-controllet/dataset-table-controllet.html index f379484..0441a63 100644 --- a/controllets/dataset-table-controllet/dataset-table-controllet.html +++ b/controllets/dataset-table-controllet/dataset-table-controllet.html @@ -434,7 +434,10 @@ //2nd loop will extract each column and convert it in string comma-seprated for (var index in arrData[i]) { - row += '"' + arrData[i][index].replace('"', '""') + '",'; + if(typeof arrData[i][index] == 'string') + row += '"' + arrData[i][index].replace('"', '""') + '",'; + else + row += arrData[i][index] + ','; } row.slice(0, row.length - 1);