diff --git a/packages/core/src/abstract/CollectionWithCategories.ts b/packages/core/src/abstract/CollectionWithCategories.ts index c5d640100..cd4ad5bf5 100644 --- a/packages/core/src/abstract/CollectionWithCategories.ts +++ b/packages/core/src/abstract/CollectionWithCategories.ts @@ -11,7 +11,9 @@ interface ModelWithCategoryProps { const CATEGORY_KEY = 'category'; -export abstract class CollectionWithCategories> extends CollectionWithPatches { +export abstract class CollectionWithCategories< + T extends Model, +> extends CollectionWithPatches { abstract getCategories(): Categories; initCategory(model: T) { diff --git a/packages/core/src/dom_components/index.ts b/packages/core/src/dom_components/index.ts index 8fc0cd147..468e7f345 100644 --- a/packages/core/src/dom_components/index.ts +++ b/packages/core/src/dom_components/index.ts @@ -364,13 +364,7 @@ export default class ComponentManager extends ItemManagerModule { await Promise.resolve(); pm.trackCollection(coll2); - const patch1b = { ...patch1, changes: [{ ...patch1.changes[0], path: ['test-collection', 'root-2', 'order', 'c'] }] }; - const patch2b = { ...patch2, changes: [{ ...patch2.changes[0], path: ['test-collection', 'root-2', 'order', 'd'] }] }; + const patch1b = { + ...patch1, + changes: [{ ...patch1.changes[0], path: ['test-collection', 'root-2', 'order', 'c'] }], + }; + const patch2b = { + ...patch2, + changes: [{ ...patch2.changes[0], path: ['test-collection', 'root-2', 'order', 'd'] }], + }; pm.apply(patch2b, { external: true }); pm.apply(patch1b, { external: true });