mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 03:35:10 +00:00
fix(plugin-field-sort): fix load logic
This commit is contained in:
parent
fa15b49c0a
commit
2251742b86
@ -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 });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user