mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
fix test
This commit is contained in:
@@ -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]});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user