Skip to content

Commit

Permalink
fix chart display if secondary dimension value is null
Browse files Browse the repository at this point in the history
  • Loading branch information
beda42 committed May 20, 2021
1 parent 262e853 commit 6d9b450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion design/ui/src/components/APIChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@
dict[this.primaryDimension] = val1.substring(0, this.maxLabelLength) + '\u2026'
}
if (this.secondaryDimension) {
let val2 = dict[this.secondaryDimension]
let val2 = String(dict[this.secondaryDimension])
if (val2.length > this.maxLabelLength + 3) {
dict[this.secondaryDimension] = val2.substring(0, this.maxLabelLength) + '\u2026'
}
Expand Down

0 comments on commit 6d9b450

Please sign in to comment.