Skip to content
This repository was archived by the owner on Jun 6, 2025. It is now read-only.

Commit ed9ff56

Browse files
committed
Fix stacked area arity bug regression
1 parent f3dd276 commit ed9ff56

File tree

1 file changed

+0
-5
lines changed
  • packages/polaris-viz/src/components/StackedAreaChart/components/StackedAreas

1 file changed

+0
-5
lines changed

packages/polaris-viz/src/components/StackedAreaChart/components/StackedAreas/StackedAreas.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,8 @@ export function StackedAreas({
8686
return (
8787
<Fragment>
8888
{stackedValues.map((data, index) => {
89-
const isSeriesLengthIncreasing =
90-
previousStackedValues &&
91-
previousStackedValues.length < stackedValues.length;
92-
9389
const dataIsValidForAnimation =
9490
!previousStackedValues ||
95-
isSeriesLengthIncreasing ||
9691
data.length === previousStackedValues[index]?.length;
9792

9893
const AreaComponent = dataIsValidForAnimation ? AnimatedArea : Area;

0 commit comments

Comments
 (0)