Skip to content

Commit

Permalink
Fix stacked area arity bug regression
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelnesen committed Jan 8, 2025
1 parent f3dd276 commit ed9ff56
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,8 @@ export function StackedAreas({
return (
<Fragment>
{stackedValues.map((data, index) => {
const isSeriesLengthIncreasing =
previousStackedValues &&
previousStackedValues.length < stackedValues.length;

const dataIsValidForAnimation =
!previousStackedValues ||
isSeriesLengthIncreasing ||
data.length === previousStackedValues[index]?.length;

const AreaComponent = dataIsValidForAnimation ? AnimatedArea : Area;
Expand Down

0 comments on commit ed9ff56

Please sign in to comment.