mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 23:57:42 +00:00
fix(webui): fix missing left sidebar for nested folders
This commit is contained in:
@@ -172,10 +172,7 @@ function FileViewPage() {
|
||||
navigate,
|
||||
])
|
||||
|
||||
const parentFolderId =
|
||||
fileData?.ancestorFolders?.[fileData.ancestorFolders.length - 1]?.id ??
|
||||
projectInfo?.rootFolder ??
|
||||
''
|
||||
const parentFolderId = fileData?.ancestorFolders?.[0]?.id ?? projectInfo?.rootFolder ?? ''
|
||||
|
||||
useEffect(() => {
|
||||
if (!parentFolderId || !activeFileId) return
|
||||
|
||||
Reference in New Issue
Block a user