mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 12:40:50 +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) {
|
if (skipExist) {
|
||||||
return collection;
|
return collection;
|
||||||
}
|
}
|
||||||
collection.updateOptions(this.get());
|
collection.updateOptions({
|
||||||
|
...this.get(),
|
||||||
|
fields: [],
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
collection = this.db.collection(this.get());
|
collection = this.db.collection({
|
||||||
|
...this.get(),
|
||||||
|
fields: [],
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!skipField) {
|
if (!skipField) {
|
||||||
|
Loading…
Reference in New Issue
Block a user