diff --git a/packages/plugin-collection-manager/src/models/collection.ts b/packages/plugin-collection-manager/src/models/collection.ts index a653f6e6af..0ad93307b2 100644 --- a/packages/plugin-collection-manager/src/models/collection.ts +++ b/packages/plugin-collection-manager/src/models/collection.ts @@ -24,9 +24,15 @@ export class CollectionModel extends MagicAttributeModel { if (skipExist) { return collection; } - collection.updateOptions(this.get()); + collection.updateOptions({ + ...this.get(), + fields: [], + }); } else { - collection = this.db.collection(this.get()); + collection = this.db.collection({ + ...this.get(), + fields: [], + }); } if (!skipField) {