From 78095d1128db5aee2cabe7627d004f7bda3470f3 Mon Sep 17 00:00:00 2001 From: ChengLei Shao Date: Wed, 31 May 2023 19:04:01 +0800 Subject: [PATCH] chore(collection-manager): load source field options --- packages/plugins/collection-manager/src/server.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/plugins/collection-manager/src/server.ts b/packages/plugins/collection-manager/src/server.ts index fe6ab7007..58e7e1e2f 100644 --- a/packages/plugins/collection-manager/src/server.ts +++ b/packages/plugins/collection-manager/src/server.ts @@ -284,6 +284,10 @@ export class CollectionManagerPlugin extends Plugin { // find original field const collectionField = this.app.db.getCollection(collectionSource).getField(fieldSource); + if (!collectionField) { + continue; + } + const newOptions = {}; // write original field options