mirror of https://gitee.com/answerdev/answer.git
fix: js error
This commit is contained in:
parent
7f1186b013
commit
16acd6b884
4093
ui/pnpm-lock.yaml
4093
ui/pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue