fix: 先兼容报错 (#9282)

This commit is contained in:
chengjinyang0 2023-12-29 20:12:49 +08:00 committed by GitHub
parent 00ef6e6a01
commit 07e3281cc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -312,7 +312,7 @@ export class DrawerPlugin extends BasePlugin {
const hostNodeDataSchema =
await this.manager.config.getHostNodeDataSchema?.();
hostNodeDataSchema
.filter(
.filter?.(
(item: any) => !['system-variable', 'page-global'].includes(item.$id)
)
?.forEach((item: any) => {