@datagrok/helm 2.1.33 → 2.1.34

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.1.33",
4
+ "version": "2.1.34",
5
5
  "author": {
6
6
  "name": "Oleksandra Serhiienko",
7
7
  "email": "oserhiienko@datagrok.ai"
@@ -152,11 +152,9 @@ function getRendererGridCellTemp(gridCell: DG.GridCell
152
152
  try { gridCol = gridCell.gridColumn; } catch { gridCol = null; }
153
153
  temp = gridCol ? gridCol.temp as RendererGridCellTemp : null;
154
154
 
155
- let tableCol: DG.Column | null = null;
156
- if (!temp) {
157
- try { tableCol = gridCell.cell.column; } catch { tableCol = null; }
158
- temp = tableCol ? tableCol.temp as RendererGridCellTemp : null;
159
- }
155
+ const tableCol: DG.Column = gridCell.cell.column;
156
+ if (!temp) temp = tableCol.temp;
157
+
160
158
  if (temp === null) throw new Error(`Monomer placer store (GridColumn or Column) not found.`);
161
159
  return [gridCol, tableCol, temp];
162
160
  }