Skip to content

Commit 749f0b9

Browse files
committed
DE-844 fix missing placeholder for column without children
1 parent 1513990 commit 749f0b9

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

eppt-core/src/main/java/gov/ca/water/calgui/presentation/plotly/TreeTableUtil.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,16 @@ private static <R extends TreeTableRowModel> String copyValuesToString(RmaTreeTa
7777
headerRow.remove(headerRow.size() - 1);
7878
}
7979
}
80+
if(i ==0 && children.isEmpty())
81+
{
82+
subHeaderRow.add("");
83+
}
8084
i++;
8185
} while(i < children.size());
8286
}
8387
}
8488
objectArray.add(headerRow.toArray());
85-
if(!subHeaderRow.isEmpty())
89+
if(!subHeaderRow.isEmpty() && !subHeaderRow.stream().allMatch(String::isEmpty))
8690
{
8791
objectArray.add(subHeaderRow.toArray());
8892
}

0 commit comments

Comments
 (0)