@datagrok/bio 2.22.6 → 2.22.8

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/.eslintrc.json CHANGED
@@ -30,6 +30,7 @@
30
30
  "valid-jsdoc": "off",
31
31
  "spaced-comment": "off",
32
32
  "linebreak-style": "off",
33
+ "quote-props": "off",
33
34
  "curly": [
34
35
  "error",
35
36
  "multi-or-nest"
package/detectors.js CHANGED
@@ -12,6 +12,7 @@
12
12
  * TODO: Use detectors from WebLogo pickUp.. methods
13
13
  */
14
14
  // eslint-disable-next-line max-lines
15
+ /// <reference path="../../globals.d.ts" />
15
16
 
16
17
  const SEQ_SAMPLE_LIMIT = 100;
17
18
  const SEQ_SAMPLE_LENGTH_LIMIT = 100;
@@ -626,8 +627,8 @@ class BioPackageDetectors extends DG.Package {
626
627
  return true;
627
628
  }
628
629
 
629
- if (event.args.item && event.args.item instanceof DG.GridColumn && event.args.item.column &&
630
- event.args.item.column.type === DG.TYPE.STRING && !event.args.item.column.semType) {
630
+ if (event.args.item && event.args.item instanceof DG.GridColumn && event.args.item.column && // there might be cases where PDS sequences with spaces are detected as text
631
+ event.args.item.column.type === DG.TYPE.STRING && (!event.args.item.column.semType || event.args.item.column.semType === DG.SEMTYPE.TEXT)) {
631
632
  const contextMenu = event.args.menu;
632
633
  const column = event.args.item.column;
633
634
  try {