mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-24 23:10:46 +00: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:
parent
b3d55fa65e
commit
ed40ce27ab
1 changed files with 3 additions and 0 deletions
|
@ -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}`)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue