@datagrok/sequence-translator 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@datagrok/sequence-translator",
3
3
  "friendlyName": "Sequence Translator",
4
- "version": "1.2.1",
4
+ "version": "1.2.2",
5
5
  "author": {
6
6
  "name": "Alexey Choposky",
7
7
  "email": "achopovsky@datagrok.ai"
@@ -23,16 +23,16 @@ export async function getExternalAppViewFactories(): Promise<{[name: string]: ()
23
23
  let div: HTMLDivElement;
24
24
  try {
25
25
  div = await grok.functions.call(pluginName, data.parameters);
26
- } catch (err) {
27
- console.error(`Plugin ${pluginName} not loaded, error:`, err)
28
- div = ui.divText('error loading');
29
- }
30
- const pluginUI = new ExternalPluginUI(data.tabName, div);
26
+ const pluginUI = new ExternalPluginUI(data.tabName, div);
31
27
 
32
- // intentonally don't await for the promise
33
- pluginUI.initView();
28
+ // intentonally don't await for the promise
29
+ pluginUI.initView();
34
30
 
35
- result[data.tabName] = () => pluginUI.getView();
31
+ result[data.tabName] = () => pluginUI.getView();
32
+ } catch (err) {
33
+ console.warn(`Plugin ${pluginName} not loaded, reason:`, err)
34
+ continue;
35
+ }
36
36
  }
37
37
  return result;
38
38
  }