diff --git a/services/web/scripts/find_malformed_filetrees.js b/services/web/scripts/find_malformed_filetrees.js index 85efc82447..f195502ba6 100644 --- a/services/web/scripts/find_malformed_filetrees.js +++ b/services/web/scripts/find_malformed_filetrees.js @@ -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}`) }