@xuda.io/runtime-bundle 1.0.370 → 1.0.372

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.
@@ -11328,8 +11328,12 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11328
11328
 
11329
11329
  if (key.substr(0, 8) === 'xu-class') {
11330
11330
  try {
11331
- let obj = JSON.parse(val);
11332
- $.each(obj, function (cla, cond) {
11331
+ // let obj = JSON.parse(val);
11332
+
11333
+ const classes_string = val;
11334
+ const classes_obj = _.isString(classes_string) ? JSON.parse(classes_string) : _.defaults(classes_string, {});
11335
+
11336
+ $.each(classes_obj, function (cla, cond) {
11333
11337
  if (cond.includes(val_field) || cond?.includes?.(parameter_in_filed_id)) {
11334
11338
  // attr.push("xuClass");
11335
11339
  attr.push('xu-class');
@@ -9399,8 +9399,12 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9399
9399
 
9400
9400
  if (key.substr(0, 8) === 'xu-class') {
9401
9401
  try {
9402
- let obj = JSON.parse(val);
9403
- $.each(obj, function (cla, cond) {
9402
+ // let obj = JSON.parse(val);
9403
+
9404
+ const classes_string = val;
9405
+ const classes_obj = _.isString(classes_string) ? JSON.parse(classes_string) : _.defaults(classes_string, {});
9406
+
9407
+ $.each(classes_obj, function (cla, cond) {
9404
9408
  if (cond.includes(val_field) || cond?.includes?.(parameter_in_filed_id)) {
9405
9409
  // attr.push("xuClass");
9406
9410
  attr.push('xu-class');