Skip to content

Commit

Permalink
Update StackedAreas.tsx
Browse files Browse the repository at this point in the history
fixed issue mentioed in Shopify#1642
  • Loading branch information
hrstrand authored Oct 12, 2024
1 parent 7749eb3 commit fd0dfc8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export function StackedAreas({
{stackedValues.map((data, index) => {
const dataIsValidForAnimation =
!previousStackedValues ||
!previousStackedValues[index] ||
data.length === previousStackedValues[index].length;

const AreaComponent = dataIsValidForAnimation ? AnimatedArea : Area;
Expand Down

0 comments on commit fd0dfc8

Please sign in to comment.