Skip to content

Commit

Permalink
Data Extractor handle null
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmelt committed Jan 18, 2024
1 parent 9a00813 commit 2b2729b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,9 @@ export default {
let columnIndex = columnMap[key]
// Get the value and put it into the correct column
if (typeof packet[key] === 'object') {
if (Array.isArray(packet[key])) {
if (packet[key] === null) {
row[columnIndex] = ''
} else if (Array.isArray(packet[key])) {
row[columnIndex] = '"[' + packet[key] + ']"'
} else {
let rawVal = packet[key]['raw']
Expand Down

0 comments on commit 2b2729b

Please sign in to comment.