From 01271598fc086c9a2b9e07dd2cfce8f142cb4ae4 Mon Sep 17 00:00:00 2001 From: chenos Date: Wed, 27 Sep 2023 09:55:18 +0800 Subject: [PATCH] fix: preset plugins --- packages/presets/nocobase/src/server/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/presets/nocobase/src/server/index.ts b/packages/presets/nocobase/src/server/index.ts index dedd455dc..ebcdf22e8 100644 --- a/packages/presets/nocobase/src/server/index.ts +++ b/packages/presets/nocobase/src/server/index.ts @@ -77,14 +77,14 @@ export class PresetNocoBase extends Plugin { } get allPlugins() { - return this.builtInPlugins + return this.getBuiltInPlugins() .map((name) => { const packageName = PluginManager.getPackageName(name); const packageJson = PluginManager.getPackageJson(packageName); return { name, packageName, enabled: true, builtIn: true, version: packageJson.version } as any; }) .concat( - this.localPlugins.map((name) => { + this.getLocalPlugins().map((name) => { const packageName = PluginManager.getPackageName(name); const packageJson = PluginManager.getPackageJson(packageName); return { name, packageName, version: packageJson.version };