Skip to content

Commit

Permalink
Don't add series data if it's empty
Browse files Browse the repository at this point in the history
  • Loading branch information
MaXal committed Nov 14, 2023
1 parent 204196f commit 88bdf8c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@ function configureChart(
let seriesName = configuration.seriesNames[dataIndex]
const seriesData = dataList[dataIndex]

// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (seriesData[1] == undefined) continue

let isNotEmpty = false
for (const data of seriesData) {
isNotEmpty = isNotEmpty || data.length > 0
Expand Down

0 comments on commit 88bdf8c

Please sign in to comment.