UBERF-8324: Fix null in external sync and todos (#6777)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2024-10-02 12:46:05 +07:00
committed by GitHub
parent 473e57d328
commit 47d14885e5
2 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -346,7 +346,7 @@ export async function syncDerivedDocuments<T extends { url: string }> (
})
const processed = new Set<Ref<DocSyncInfo>>()
const _docs = docs(ext)
const _docs = docs(ext).filter((it) => it != null)
for (const r of _docs) {
const existing = childDocsOfClass.find((it) => it.url.toLowerCase() === r.url.toLowerCase())
if (existing === undefined) {