1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

[wiki index] fix index path (#2836)

This commit is contained in:
王健辉
2019-01-16 15:16:23 +08:00
committed by Daniel Pan
parent 07f80069ac
commit 641c0f82e8

View File

@@ -45,7 +45,7 @@ class Wiki extends Component {
getIndexContent = (files) => {
files.some(file => {
if (file.type === 'file' && file.name === 'index.md') {
if (file.parent_path === '/' && file.type === 'file' && file.name === 'index.md') {
let filePath = Utils.joinPath(file.parent_path, file.name);
editorUtilities.getWikiFileContent(slug, filePath).then((res) => {
this.setState({