Skip to content

Commit

Permalink
fix: address single value bug when series length is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikThePendric committed Dec 2, 2024
1 parent 0410cfc commit c7ef52d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function getDefaultSortedConfig(config, layout, stacked) {
const categories = config.xAxis?.length && config.xAxis[0].categories
const series = config.series
const indexOrder = getIndexOrder(
stacked ? getStackedData(series, layout) : series[0].data,
stacked ? getStackedData(series, layout) : series[0]?.data ?? [],
layout
)
const sortedConfig = Object.assign({}, config)
Expand Down

0 comments on commit c7ef52d

Please sign in to comment.