From 0330b82edd5be797514938a953e8e71d413fad78 Mon Sep 17 00:00:00 2001 From: Joshua Sigona Date: Sun, 22 Aug 2021 09:26:26 +0900 Subject: [PATCH] check for booleans as well --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 8bc8cde..f85a6db 100644 --- a/src/App.js +++ b/src/App.js @@ -152,7 +152,7 @@ function TableEditor(p) { var promises=[] parse(fileData,{columns:true,skip_empty_lines:true}).forEach((entry)=>{ for (var col of fields) { - if ((col.dataTypeID===23||col.dataTypeID===701)&&entry[col.name]==="") { + if ((col.dataTypeID===23||col.dataTypeID===701||dataTypeID===16)&&entry[col.name]==="") { entry[col.name]=0 } }