Skip to content

Commit e826fd4

Browse files
Merge pull request #2105 from JohnDuprey/dev
Handle null values in flatten function
2 parents fbe07ed + f6cb61c commit e826fd4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/tables/CippTable.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,9 @@ export default function CippTable({
556556
let output = {}
557557
for (let k in obj) {
558558
let val = obj[k]
559+
if (val === null) {
560+
val = ''
561+
}
559562
const newKey = prefix ? prefix + '.' + k : k
560563
if (typeof val === 'object') {
561564
if (Array.isArray(val)) {

0 commit comments

Comments
 (0)