Skip to content

Commit

Permalink
resolve baidu#68, baidu#66
Browse files Browse the repository at this point in the history
  • Loading branch information
minorcong committed May 13, 2019
1 parent 482c12f commit 7ed8c36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
click==6.7 # don't change the order, latest click lib has a critical bug
requests==2.12.4 # don't change the order, latest requests lib has a critical bug
Flask-SQLAlchemy>=2.3.2
Flask-RESTful>=0.3.6
Expand Down
7 changes: 5 additions & 2 deletions web/src/index/component/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,13 @@ export default class Sidebar extends Component {
}
}
let firstDataName = list[0].name;
let nextDataName = list[index + 1].name;
let nextDataName = null;
let nextUrl = '';
if (index < list.length - 1){
nextDataName = list[index + 1].name;
}
if (nextDataName) {
nextUrl = '/home/' + nextDataName;
nextUrl = '/home/' + nextDataName;
}
else {
if (firstDataName) {
Expand Down

0 comments on commit 7ed8c36

Please sign in to comment.