diff --git a/packages/app/src/stores/PluginStore/PluginStore.ts b/packages/app/src/stores/PluginStore/PluginStore.ts index 124b16fa5..d4d4a7349 100644 --- a/packages/app/src/stores/PluginStore/PluginStore.ts +++ b/packages/app/src/stores/PluginStore/PluginStore.ts @@ -33,15 +33,9 @@ export const PluginStore = types types.frozen>({}), {} ), - // pluginsLoadersByIds: types.optional(types.frozen>({})), {}), pluginsLoadersByIds: types.map(PluginLoader), pluginLoadersByScopes: types.map(types.array(types.reference(PluginLoader))), - // pluginLoadersByScopes: types.optional( - // types.frozen>({}), - // {} - // ), - _plugins: types.optional(types.frozen(), []), pluginsRequest: types.optional(RequestModel, {}), @@ -49,7 +43,6 @@ export const PluginStore = types }) .actions((self) => ({ init: flow(function* () { - // init: function () { const pluginsResponse = yield self.pluginsRequest.send( api.pluginsRepository.getPluginsList, {} @@ -118,9 +111,6 @@ export const PluginStore = types await pluginLoader.loadPlugin(); console.log('loaded plugin ', {plugin_id, meta, options}); - - // self.pluginsLoadersByIds.set(plugin_id, pluginLoader); - console.log('pluginLoader', pluginLoader); return pluginLoader; @@ -131,7 +121,6 @@ export const PluginStore = types }) ); const loadedPlugins = plugins.filter((plugin: any) => !!plugin); - // self.pluginLoadersByScopes.set(scope, cast(loadedPlugins)); self.storePluginLoadersByScope(scope, loadedPlugins); return loadedPlugins;