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 }); } });