From 641c0f82e8a42a6550f368ddec07b84e2eec2937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=81=A5=E8=BE=89?= <40563566+WangJianhui666@users.noreply.github.com> Date: Wed, 16 Jan 2019 15:16:23 +0800 Subject: [PATCH] [wiki index] fix index path (#2836) --- frontend/src/wiki.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/wiki.js b/frontend/src/wiki.js index 20c5f06012..8b57f1160d 100644 --- a/frontend/src/wiki.js +++ b/frontend/src/wiki.js @@ -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({