mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 10:17:00 +00:00
fix: getListenServerHooks
This commit is contained in:
parent
672c44e376
commit
fca6977ad1
@ -3,7 +3,7 @@ import { HookType } from './server-hooks';
|
|||||||
|
|
||||||
class UiSchemaModel extends MagicAttributeModel {
|
class UiSchemaModel extends MagicAttributeModel {
|
||||||
getListenServerHooks(type: HookType) {
|
getListenServerHooks(type: HookType) {
|
||||||
const hooks = this.get('x-server-hooks');
|
const hooks = this.get('x-server-hooks') || {};
|
||||||
return hooks[type] || [];
|
return hooks[type] || [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user