@xuda.io/runtime-bundle 1.0.1311 → 1.0.1312

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.
@@ -28222,10 +28222,10 @@ func.UI.update_xu_ref = function (SESSION_ID, dsSessionP, ref_field_id, $elm) {
28222
28222
  return proxy;
28223
28223
  }
28224
28224
 
28225
- return createProxy({ _ref: obj });
28225
+ return createProxy(obj);
28226
28226
  }
28227
28227
 
28228
- const watchedUser = createWatchedObject(_ds, async (change) => {
28228
+ const watchedDs = createWatchedObject({ _ref: _ds }, async (change) => {
28229
28229
  // console.log('Change detected:', change);
28230
28230
  const { path, newValue } = change;
28231
28231
  try {
@@ -28242,7 +28242,7 @@ func.UI.update_xu_ref = function (SESSION_ID, dsSessionP, ref_field_id, $elm) {
28242
28242
 
28243
28243
  //////////////
28244
28244
 
28245
- let obj = { ds: _ds, data: {}, props: _ds.in_parameters || {}, watcher: watchedUser };
28245
+ let obj = { ds: watchedDs._ref, data: {}, props: _ds.in_parameters || {} };
28246
28246
  try {
28247
28247
  const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
28248
28248
  obj.data = _ds?.data_feed?.rows?.[row_idx];