Skip to content

Commit

Permalink
fix: stack undefined/null
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley committed Jul 26, 2021
1 parent e0e985c commit 381d1eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/buildAxis.linear.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ function stackSeries<TDatum>(
.keys(seriesIndices)
.value((_, seriesIndex, index) => {
const val = axisOptions.getValue(
axisSeries[Number(seriesIndex)].datums[index].originalDatum
axisSeries[Number(seriesIndex)]?.datums[index]?.originalDatum
)

if (typeof val === 'undefined' || val === null) {
Expand Down

1 comment on commit 381d1eb

@vercel
Copy link

@vercel vercel bot commented on 381d1eb Jul 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.