Skip to content

Commit

Permalink
Fix series name for series that are ints
Browse files Browse the repository at this point in the history
  • Loading branch information
MaXal committed Nov 14, 2023
1 parent 88bdf8c commit 81dfaea
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,8 @@ function configureChart(
}

if (isNotEmpty) {
const name = seriesName.startsWith("metrics.") ? seriesName.slice("metrics.".length) : seriesName
// noinspection SuspiciousTypeOfGuard
const name = typeof seriesName === "string" ? (seriesName.startsWith("metrics.") ? seriesName.slice("metrics.".length) : seriesName) : seriesName
const id = measureName === seriesName ? seriesName : `${measureName}@${seriesName}`
const seriesLayoutBy = "row"
const datasetIndex = dataIndex
Expand Down

0 comments on commit 81dfaea

Please sign in to comment.