Skip to content

Commit f9a419b

Browse files
committed
Fix bom export having "null" column
It's supposed to be empty Fixes #480
1 parent a9d4474 commit f9a419b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

InteractiveHtmlBom/web/util.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ function saveBomTable(output) {
7070
var text = '';
7171
for (var node of bomhead.childNodes[0].childNodes) {
7272
if (node.firstChild) {
73-
text += (output == 'csv' ? `"${node.firstChild.nodeValue}"` : node.firstChild.nodeValue);
73+
var name = node.firstChild.nodeValue ?? "";
74+
text += (output == 'csv' ? `"${name}"` : name);
7475
}
7576
if (node != bomhead.childNodes[0].lastChild) {
7677
text += (output == 'csv' ? ',' : '\t');

0 commit comments

Comments
 (0)