Skip to content

Commit

Permalink
fix: handle null in CSV preview
Browse files Browse the repository at this point in the history
(cherry picked from commit e93b0e8)
  • Loading branch information
barredterra authored and akhilnarang committed Apr 29, 2024
1 parent c8387f8 commit 551503a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frappe/public/js/frappe/views/reports/report_utils.js
Expand Up @@ -284,6 +284,10 @@ frappe.report_utils = {
.map((row) => {
return row
.map((col) => {
if (col === null) {
return "";
}

if (typeof col == "string" && col.includes('"')) {
col = col.replace(/"/g, '""');
}
Expand Down

0 comments on commit 551503a

Please sign in to comment.