diff --git a/packages/core/src/patch_manager/index.ts b/packages/core/src/patch_manager/index.ts index b6a7ca333..84230258a 100644 --- a/packages/core/src/patch_manager/index.ts +++ b/packages/core/src/patch_manager/index.ts @@ -98,7 +98,9 @@ export default class PatchManager { if (!collection) return; const type = collection.patchObjectType; const id = - typeof collection.getPatchCollectionId === 'function' ? collection.getPatchCollectionId() : collection.collectionId; + typeof collection.getPatchCollectionId === 'function' + ? collection.getPatchCollectionId() + : collection.collectionId; if (!type || !isValidPatchUid(id)) return; const idStr = String(id); this.trackedCollections[type] = this.trackedCollections[type] || {}; @@ -109,7 +111,9 @@ export default class PatchManager { if (!collection) return; const type = collection.patchObjectType; const id = - typeof collection.getPatchCollectionId === 'function' ? collection.getPatchCollectionId() : collection.collectionId; + typeof collection.getPatchCollectionId === 'function' + ? collection.getPatchCollectionId() + : collection.collectionId; if (!type || !isValidPatchUid(id)) return; const idStr = String(id); this.trackedCollections[type] && delete this.trackedCollections[type][idStr];