From 57b296e5b5fff4300de1538fb802114cceb67991 Mon Sep 17 00:00:00 2001 From: geoffrymichael <33409643+geoffrymichael@users.noreply.github.com> Date: Mon, 6 Jul 2020 13:42:59 -0700 Subject: [PATCH] Added fix for null value cell.v (#1730) Closes #1717 --- bits/81_writeods.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bits/81_writeods.js b/bits/81_writeods.js index a536e59..905913f 100644 --- a/bits/81_writeods.js +++ b/bits/81_writeods.js @@ -78,7 +78,7 @@ var write_content_ods/*:{(wb:any, opts:any):string}*/ = (function() { ct['office:value'] = (cell.v||0); break; case 's': case 'str': - textp = cell.v; + textp = cell.v == null ? "" : cell.v; ct['office:value-type'] = "string"; break; case 'd':