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 mergify[bot] committed Apr 25, 2024
1 parent 5a73fd8 commit 716f793
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 @@ -285,6 +285,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 716f793

Please sign in to comment.