fix: check for deleted objects (#6581)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2024-09-16 14:58:15 +07:00 committed by GitHub
parent 899531f8a8
commit ff34abaa4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,6 +33,9 @@ export async function OnDelete (
// Obtain document being deleted
const doc = removedMap.get(rmTx.objectId)
if (doc === undefined) {
return []
}
// Ids of files to delete from storage
const toDelete: CollaborativeDoc[] = []