Skip to content

Commit 6ea545d

Browse files
authored
Merge pull request #21 from visual-heuristics/feat_visualization
fix the animation of the initial stage
2 parents 04878a3 + 4804d31 commit 6ea545d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pages/PageFour/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ class PageFour extends React.Component {
9090
const previousStageIndex = this.state.blockIndex;
9191
const previousStage = allStages[previousStageIndex];
9292
const newStage = allStages[index];
93-
const times = 20
93+
const times = 20;
94+
newStage.sort((itemA, itemB) => itemA.depth - itemB.depth);
9495
// this.setState({
9596
// drawBlocks: [...newStage]
9697
// });

0 commit comments

Comments
 (0)