From 003745681b537b6d740b4cdbef6dd2f6da858824 Mon Sep 17 00:00:00 2001 From: chenos Date: Mon, 24 Jan 2022 14:41:27 +0800 Subject: [PATCH] fix(plugin-collection-manager): filter out the fields --- .../plugin-collection-manager/src/models/collection.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/plugin-collection-manager/src/models/collection.ts b/packages/plugin-collection-manager/src/models/collection.ts index a653f6e6a..0ad93307b 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) {