Merge pull request #548 from answerdev/feat/1.2.0/ui

fix: js error
This commit is contained in:
dashuai 2023-09-25 12:20:57 +08:00 committed by GitHub
commit 24767a47b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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[]) {
this.plugins.forEach((plugin) => {
const { slug_name } = plugin.info;
const activatedPlugin = activatedPlugins.find(
const activatedPlugin = activatedPlugins?.find(
(p) => p.slug_name === slug_name,
);
if (activatedPlugin) {