1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 17:33:18 +00:00

fix wiki bug (#7189)

This commit is contained in:
Michael An
2024-12-16 09:43:40 +08:00
committed by GitHub
parent 9219b49d8c
commit 13c9525df1
2 changed files with 10 additions and 1 deletions

View File

@@ -111,6 +111,9 @@ const getPaths = (navigation, currentPageId, pages, isGetPathStr) => {
const getNamePaths = (config, pageId) => {
const { navigation, pages } = config;
const { paths, curNode } = getPaths(navigation, pageId, pages, true);
if (!paths || !curNode) {
return { path: null, isDir: false };
}
const pathArr = paths.split('-');
const nameArr = [];
if (pathArr.length > 1) {