@datagrok/helm 2.8.0 → 2.8.1

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/helm",
3
3
  "friendlyName": "Helm",
4
- "version": "2.8.0",
4
+ "version": "2.8.1",
5
5
  "author": {
6
6
  "name": "Maria Dolotova",
7
7
  "email": "mdolotova@datagrok.ai"
@@ -69,9 +69,13 @@ export function rewriteLibraries(monomerLib: IMonomerLib): void {
69
69
  });
70
70
  webEditorMonomer.at = at;
71
71
  } else if (monomer[SMILES] != null) {
72
- // @ts-ignore
73
- webEditorMonomer.rs = Object.keys(getRS(monomer[SMILES].toString())).length;
74
- webEditorMonomer.at = monomerLib.getRS(monomer[SMILES].toString());
72
+ const rs = monomerLib.getRS(monomer[SMILES].toString());
73
+ if(rs == null || Object.keys(rs).length === 0) {
74
+ isBroken = true;
75
+ } else {
76
+ webEditorMonomer.rs = Object.keys(rs).length;
77
+ webEditorMonomer.at = rs;
78
+ }
75
79
  } else
76
80
  isBroken = true;
77
81