fix(plugin-field-sort): fix load logic

This commit is contained in:
mytharcher 2024-08-22 17:42:03 +08:00
parent fa15b49c0a
commit 2251742b86

View File

@ -26,7 +26,7 @@ export class PluginFieldSortServer extends Plugin {
this.app.dataSourceManager.beforeAddDataSource((dataSource: DataSource) => { this.app.dataSourceManager.beforeAddDataSource((dataSource: DataSource) => {
// @ts-ignore // @ts-ignore
if (dataSource.collectionManager.db) { if (dataSource.collectionManager?.db) {
dataSource.resourceManager.registerActionHandlers({ move }); dataSource.resourceManager.registerActionHandlers({ move });
} }
}); });