@xuda.io/runtime-bundle 1.0.595 → 1.0.597

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.
@@ -31709,7 +31709,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
31709
31709
  // if (fields_changed_datasource && panel_val._ds.dsSession < fields_changed_datasource) {
31710
31710
  // continue;
31711
31711
  // }
31712
- if (fields_changed_datasource && panel_val._ds.dsSession < Number(fields_changed_datasource)) {
31712
+ if (fields_changed_datasource && panel_val._ds.dsSession <= Number(fields_changed_datasource)) {
31713
31713
  continue;
31714
31714
  }
31715
31715
  for (const field_id of fields_changed_arr) {
@@ -31758,27 +31758,26 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
31758
31758
 
31759
31759
  break;
31760
31760
  }
31761
- // }
31762
31761
  }
31762
+ }
31763
31763
 
31764
- if (found) break;
31764
+ if (found) break;
31765
31765
 
31766
- // search field changed in the target program's progDataSource // @code
31767
- found = progDataSource_str?.includes('@' + field_id);
31768
- if (found) {
31769
- refresh_reason = `field ${field_id} in progDataSource changed`;
31770
- refresh_details = panel_val?.prog_doc?.progDataSource;
31766
+ // search field changed in the target program's progDataSource // @code
31767
+ found = progDataSource_str?.includes('@' + field_id);
31768
+ if (found) {
31769
+ refresh_reason = `field ${field_id} in progDataSource changed`;
31770
+ refresh_details = panel_val?.prog_doc?.progDataSource;
31771
31771
 
31772
- break;
31773
- }
31772
+ break;
31773
+ }
31774
31774
 
31775
- found = func.UI.find_field_in_progUi_attributes(panel_val.prog_doc.progUi, field_id, 'xu-for').length;
31776
- if (found) {
31777
- refresh_reason = `field ${field_id} in progUi xu-for changed`;
31778
- refresh_details = found;
31775
+ found = func.UI.find_field_in_progUi_attributes(panel_val.prog_doc.progUi, field_id, 'xu-for').length;
31776
+ if (found) {
31777
+ refresh_reason = `field ${field_id} in progUi xu-for changed`;
31778
+ refresh_details = found;
31779
31779
 
31780
- break;
31781
- }
31780
+ break;
31782
31781
  }
31783
31782
 
31784
31783
  if (found) {
@@ -36190,6 +36189,7 @@ func.events.add_to_queue = async function (
36190
36189
  job_num: _session.WORKER_OBJ.num,
36191
36190
  };
36192
36191
  var _ds = _session.DS_GLB[dsSessionP];
36192
+ if (!_ds) return;
36193
36193
  if (typeof dsSessionP !== 'undefined' && dsSessionP !== null) {
36194
36194
  obj.prog_id = _ds.prog_id;
36195
36195
  obj.parentDataSourceNo = _ds.parentDataSourceNo;