mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-25 12:37:02 +03:00
fix: check for deleted objects (#6581)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
parent
899531f8a8
commit
ff34abaa4a
@ -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[] = []
|
||||
|
Loading…
Reference in New Issue
Block a user