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:
@@ -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({
|
||||
|
Reference in New Issue
Block a user