Browse Source

fix format

pull/6691/head
IhorKaleniuk666 2 weeks ago
parent
commit
b47341a204
  1. 8
      packages/core/src/patch_manager/index.ts

8
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];

Loading…
Cancel
Save