diff --git a/server-plugins/collaboration-resources/src/index.ts b/server-plugins/collaboration-resources/src/index.ts index c9eda17a99..1a6673e8a9 100644 --- a/server-plugins/collaboration-resources/src/index.ts +++ b/server-plugins/collaboration-resources/src/index.ts @@ -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[] = []