mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 09:47:10 +00:00
fix(plugin-collection-manager): filter out the fields
This commit is contained in:
parent
9c6ad9967f
commit
003745681b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user