1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00
This commit is contained in:
ilearnit
2019-04-17 03:09:44 +00:00
parent 2000c9b792
commit 8c6ae8676e
2 changed files with 5 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Router, navigate } from '@reach/router';
import { siteRoot, canAddRepo } from './utils/constants';
import { siteRoot, canAddRepo, isDocs } from './utils/constants';
import { Utils } from './utils/utils';
import SystemNotification from './components/system-notification';
import SidePanel from './components/side-panel';
@@ -61,7 +61,9 @@ class App extends Component {
// get reviews
// TODO: need refactor later
let href = window.location.href.split('/');
this.getDrafts();
if (isDocs) {
this.getDrafts();
}
this.setState({currentTab: href[href.length - 2]});
}