fix: js error

This commit is contained in:
shuai 2023-09-25 12:20:21 +08:00
parent 7f1186b013
commit 16acd6b884
2 changed files with 2067 additions and 2028 deletions

File diff suppressed because it is too large Load Diff

View File

@ -95,7 +95,7 @@ class Plugins {
activatePlugins(activatedPlugins: Type.ActivatedPlugin[]) { activatePlugins(activatedPlugins: Type.ActivatedPlugin[]) {
this.plugins.forEach((plugin) => { this.plugins.forEach((plugin) => {
const { slug_name } = plugin.info; const { slug_name } = plugin.info;
const activatedPlugin = activatedPlugins.find( const activatedPlugin = activatedPlugins?.find(
(p) => p.slug_name === slug_name, (p) => p.slug_name === slug_name,
); );
if (activatedPlugin) { if (activatedPlugin) {