Skip to content

Commit e19a474

Browse files
committed
Merge branch 'develop' of https://github.com/visual-heuristics/frontend-js into feat_fetch_problem_file
2 parents 999e431 + d12f84e commit e19a474

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
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
// });

src/pages/PageFour/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ ul {
7979
}
8080

8181
.sub_item {
82-
height: 30px;
82+
//height: 30px;
8383
text-align: center;
8484
position: relative;
8585
cursor: pointer;

0 commit comments

Comments
 (0)