mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-24 01:29:35 +02:00
Merge pull request #7467 from overleaf/em-bad-filetree
Find file trees that have null folder entries GitOrigin-RevId: aa4c7ed180479288d4ce26549ceeaa0f5ebbd298
This commit is contained in:
@@ -41,6 +41,9 @@ function findBadPaths(folder) {
|
||||
}
|
||||
if (folder.folders && Array.isArray(folder.folders)) {
|
||||
for (const [i, subfolder] of folder.folders.entries()) {
|
||||
if (!subfolder) {
|
||||
result.push(`folders.${i}`)
|
||||
}
|
||||
for (const badPath of findBadPaths(subfolder)) {
|
||||
result.push(`folders.${i}.${badPath}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user