mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 07:27:04 +00:00
[wiki index] fix index path (#2836)
This commit is contained in:
@@ -45,7 +45,7 @@ class Wiki extends Component {
|
|||||||
|
|
||||||
getIndexContent = (files) => {
|
getIndexContent = (files) => {
|
||||||
files.some(file => {
|
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);
|
let filePath = Utils.joinPath(file.parent_path, file.name);
|
||||||
editorUtilities.getWikiFileContent(slug, filePath).then((res) => {
|
editorUtilities.getWikiFileContent(slug, filePath).then((res) => {
|
||||||
this.setState({
|
this.setState({
|
||||||
|
Reference in New Issue
Block a user