@xuda.io/runtime-bundle 1.0.1281 → 1.0.1282

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.
@@ -28262,10 +28262,11 @@ func.UI.update_xu_ref = function (SESSION_ID, dsSessionP, ref_field_id, $elm) {
28262
28262
 
28263
28263
  const watchedUser = createWatchedObject(_ds, async (change) => {
28264
28264
  console.log('Change detected:', change);
28265
+ const { path, newValue } = change;
28265
28266
  try {
28266
- _session.DS_GLB[dsSessionP].watcher = {};
28267
+ _session.DS_GLB[dsSessionP].watcher = { path, newValue };
28267
28268
 
28268
- _.set(_session.DS_GLB[dsSessionP].watcher, change.path, change.newValue);
28269
+ // _.set(_session.DS_GLB[dsSessionP].watcher, change.path, change.newValue);
28269
28270
 
28270
28271
  await func.action.execute(SESSION_ID, 'act_refresh', _session.DS_GLB[dsSessionP], null, null, null, $elm);
28271
28272
  } catch (error) {}
@@ -28711,6 +28712,10 @@ func.datasource.prepare = async function (SESSION_ID, prog_id, dataSourceNoP, pa
28711
28712
  console.log('DATASOURCE_REFRESH', dataSourceNoP);
28712
28713
  IS_DATASOURCE_REFRESH = true;
28713
28714
  _ds.refreshed = true;
28715
+ if (_ds.watcher) {
28716
+ _.set(_ds, watcher.path, watcher.newValue);
28717
+ debugger;
28718
+ }
28714
28719
  try {
28715
28720
  if (!_ds.v) _ds.v = {};
28716
28721