@xuda.io/runtime-bundle 1.0.1334 → 1.0.1336

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.
@@ -28311,7 +28311,7 @@ func.UI.update_xu_ref = function (SESSION_ID, dsSessionP, ref_field_id, $elm) {
28311
28311
  if (!SYS_GLOBAL_OBJ_REFS[ref_field_id]) {
28312
28312
  SYS_GLOBAL_OBJ_REFS[ref_field_id] = {};
28313
28313
  }
28314
- SYS_GLOBAL_OBJ_REFS[ref_field_id] = obj;
28314
+ // SYS_GLOBAL_OBJ_REFS[ref_field_id] = obj;
28315
28315
 
28316
28316
  function deepUpdateObject(a, b) {
28317
28317
  for (let key in b) {
@@ -28319,14 +28319,16 @@ func.UI.update_xu_ref = function (SESSION_ID, dsSessionP, ref_field_id, $elm) {
28319
28319
  if (typeof b[key] === 'object' && b[key] !== null && !Array.isArray(b[key]) && a[key] && typeof a[key] === 'object') {
28320
28320
  deepUpdateObject(a[key], b[key]);
28321
28321
  } else {
28322
- a[key] = b[key];
28322
+ if (!_.isEqual(a[key], b[key])) {
28323
+ a[key] = b[key];
28324
+ }
28323
28325
  }
28324
28326
  }
28325
28327
  }
28326
28328
  return a;
28327
28329
  }
28328
- // deepUpdateObject(SYS_GLOBAL_OBJ_REFS[ref_field_id], obj);
28329
-
28330
+ deepUpdateObject(SYS_GLOBAL_OBJ_REFS[ref_field_id], obj);
28331
+ SYS_GLOBAL_OBJ_REFS[ref_field_id] = obj;
28330
28332
  ret = true;
28331
28333
  }
28332
28334
 
@@ -42626,7 +42628,7 @@ func.index.set_ds_0_proxy = function (SESSION_ID) {
42626
42628
  const fx = _session?.watchers?.[path];
42627
42629
  fx(change);
42628
42630
  }
42629
-
42631
+ return;
42630
42632
  if (!change.path.includes('data_system.SYS_GLOBAL_OBJ_REFS')) return;
42631
42633
  const ref_id = change.path.split('SYS_GLOBAL_OBJ_REFS.')[1].split('.')[0];
42632
42634
  if (!ref_id) return;