From 2251742b8641028a1622e635b3730a098bf345e3 Mon Sep 17 00:00:00 2001 From: mytharcher Date: Thu, 22 Aug 2024 17:42:03 +0800 Subject: [PATCH] fix(plugin-field-sort): fix load logic --- .../plugins/@nocobase/plugin-field-sort/src/server/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/@nocobase/plugin-field-sort/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-field-sort/src/server/plugin.ts index bd2fb66503..e61827c183 100644 --- a/packages/plugins/@nocobase/plugin-field-sort/src/server/plugin.ts +++ b/packages/plugins/@nocobase/plugin-field-sort/src/server/plugin.ts @@ -26,7 +26,7 @@ export class PluginFieldSortServer extends Plugin { this.app.dataSourceManager.beforeAddDataSource((dataSource: DataSource) => { // @ts-ignore - if (dataSource.collectionManager.db) { + if (dataSource.collectionManager?.db) { dataSource.resourceManager.registerActionHandlers({ move }); } });