diff --git a/frontend/src/plugin/index.ts b/frontend/src/plugin/index.ts index ccfedffd97..b412c43b81 100644 --- a/frontend/src/plugin/index.ts +++ b/frontend/src/plugin/index.ts @@ -278,17 +278,18 @@ export async function fetchAndExecutePlugins( if (Object.keys(incompatiblePlugins).length > 0) { onIncompatible(incompatiblePlugins); - const packagesIncompatibleSet: PluginInfo[] = updatedSettingsPackages.map( - (plugin: PluginInfo) => { - return { - ...plugin, - isCompatible: !incompatiblePlugins[plugin.name], - }; - } - ); - onSettingsChange(packagesIncompatibleSet); } + const packagesIncompatibleSet: PluginInfo[] = updatedSettingsPackages.map( + (plugin: PluginInfo) => { + return { + ...plugin, + isCompatible: !incompatiblePlugins[plugin.name], + }; + } + ); + onSettingsChange(packagesIncompatibleSet); + sourcesToExecute.forEach((source, index) => { // Execute plugins inside a context (not in global/window) (function (str: string) {