jqgrid_utils 1.26.1 → 1.26.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.
@@ -1249,9 +1249,16 @@ async add_link_details(col_model, url, edit_field, attr = '', keys, format)
1249
1249
  if (col_model[i]['name'] === edit_field)
1250
1250
  {
1251
1251
  col_model[i]['formatter'] = function(cell_val, obj)
1252
- {
1253
- let key_val = cell_val;
1254
- const t = cell_val.toString();
1252
+ {
1253
+ let key_val = '';
1254
+ if(cell_val)
1255
+ {
1256
+ key_val = cell_val;
1257
+ }
1258
+ let t = '';
1259
+ if(cell_val) {
1260
+ t = cell_val.toString();
1261
+ }
1255
1262
  if (typeof keys === 'object')
1256
1263
  {
1257
1264
  let pref = '';
package/jqgrid_utils.js CHANGED
@@ -1248,9 +1248,16 @@ async add_link_details(col_model, url, edit_field, attr = '', keys, format)
1248
1248
  if (col_model[i]['name'] === edit_field)
1249
1249
  {
1250
1250
  col_model[i]['formatter'] = function(cell_val, obj)
1251
- {
1252
- let key_val = cell_val;
1253
- const t = cell_val.toString();
1251
+ {
1252
+ let key_val = '';
1253
+ if(cell_val)
1254
+ {
1255
+ key_val = cell_val;
1256
+ }
1257
+ let t = '';
1258
+ if(cell_val) {
1259
+ t = cell_val.toString();
1260
+ }
1254
1261
  if (typeof keys === 'object')
1255
1262
  {
1256
1263
  let pref = '';
package/package.json CHANGED
@@ -29,5 +29,5 @@
29
29
  {
30
30
  "test": "echo \"Error: no test specified\" && exit 1"
31
31
  },
32
- "version": "1.26.1"
32
+ "version": "1.26.2"
33
33
  }