Commit 81ed237f3dd3a8e0b43ba7feb01eb7b750f9f11f
1 parent
0ff098cc
updates
Showing
1 changed file
with
4 additions
and
1 deletions
controllets/dataset-table-controllet/dataset-table-controllet.html
| ... | ... | @@ -434,7 +434,10 @@ |
| 434 | 434 | |
| 435 | 435 | //2nd loop will extract each column and convert it in string comma-seprated |
| 436 | 436 | for (var index in arrData[i]) { |
| 437 | - row += '"' + arrData[i][index].replace('"', '""') + '",'; | |
| 437 | + if(typeof arrData[i][index] == 'string') | |
| 438 | + row += '"' + arrData[i][index].replace('"', '""') + '",'; | |
| 439 | + else | |
| 440 | + row += arrData[i][index] + ','; | |
| 438 | 441 | } |
| 439 | 442 | |
| 440 | 443 | row.slice(0, row.length - 1); | ... | ... |