1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-05-12 18:05:05 +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
frontend/src
tests/api/endpoints

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]});
}

View File

@ -60,9 +60,7 @@ class WikisViewTest(BaseTestCase):
assert len(Wiki.objects.all()) == 0
resp = self.client.post(self.url, {
'name': 'test wiki',
'repo_id': '',
'use_exist_repo': 'false',
'repo_id': self.repo.id,
})
self.assertEqual(200, resp.status_code)