@xuda.io/runtime-bundle 1.0.739 → 1.0.740

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.
@@ -27938,28 +27938,28 @@ func.UI.update_xu_ref = function (SESSION_ID, dsSessionP, ref_field_id, $elm) {
27938
27938
  let _ds_0 = _session.DS_GLB[0];
27939
27939
 
27940
27940
  const _ds = func.utils.clean_returned_datasource(SESSION_ID, dsSessionP);
27941
+
27942
+ let obj = { ds: _ds, data: {}, props: _ds.in_parameters || {} };
27941
27943
  try {
27942
27944
  const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
27945
+ obj.data = _ds?.data_feed?.rows?.[row_idx];
27946
+ } catch (error) {
27947
+ // error normal if find_ROWID_idx fail
27948
+ }
27949
+ let SYS_GLOBAL_OBJ_REFS = _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'];
27943
27950
 
27944
- let SYS_GLOBAL_OBJ_REFS = _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'];
27945
-
27946
- let obj = { ds: _ds, data: _ds?.data_feed?.rows?.[row_idx] || {}, props: _ds.in_parameters || {} };
27947
-
27948
- if ($elm) {
27949
- const attributes = $elm?.data()?.xuData?.xuPanelProps || $elm?.data()?.xuData?.debug_info?.attribute_stat || {};
27950
- obj.attributes = attributes;
27951
- obj.xu_ui_id = $elm.attr('xu-ui-id');
27952
- }
27951
+ if ($elm) {
27952
+ const attributes = $elm?.data()?.xuData?.xuPanelProps || $elm?.data()?.xuData?.debug_info?.attribute_stat || {};
27953
+ obj.attributes = attributes;
27954
+ obj.xu_ui_id = $elm.attr('xu-ui-id');
27955
+ }
27953
27956
 
27954
- if (!_.isEqual(SYS_GLOBAL_OBJ_REFS?.[ref_field_id] || {}, obj)) {
27955
- if (!SYS_GLOBAL_OBJ_REFS[ref_field_id]) {
27956
- SYS_GLOBAL_OBJ_REFS[ref_field_id] = {};
27957
- }
27958
- SYS_GLOBAL_OBJ_REFS[ref_field_id] = obj;
27959
- ret = true;
27957
+ if (!_.isEqual(SYS_GLOBAL_OBJ_REFS?.[ref_field_id] || {}, obj)) {
27958
+ if (!SYS_GLOBAL_OBJ_REFS[ref_field_id]) {
27959
+ SYS_GLOBAL_OBJ_REFS[ref_field_id] = {};
27960
27960
  }
27961
- } catch (error) {
27962
- // error normal if find_ROWID_idx fail
27961
+ SYS_GLOBAL_OBJ_REFS[ref_field_id] = obj;
27962
+ ret = true;
27963
27963
  }
27964
27964
 
27965
27965
  return ret;
@@ -31909,8 +31909,10 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
31909
31909
  const params_obj = await get_params_obj_new(SESSION_ID, prog_id, nodeP, paramsP.dsSessionP);
31910
31910
  let ret_panel = await func.UI.screen.init(SESSION_ID, prog_id, paramsP.screenId, _ds, $elm, null, _ds.currentRecordId, null, true, params_obj.params_res, 'initXu_panel', undefined, prog_id !== _ds.prog_id ? null : refreshed_ds, params_obj.params_raw);
31911
31911
  ret = { $new_div: ret_panel };
31912
- $container.data().xuData.xuPanelProps = $elm.data().xuAttributes;
31913
- $container.data().xuData.xuPanelData = ret_panel.data();
31912
+ if ($container.data().xuData) {
31913
+ $container.data().xuData.xuPanelProps = $elm.data().xuAttributes;
31914
+ $container.data().xuData.xuPanelData = ret_panel.data();
31915
+ }
31914
31916
  return ret;
31915
31917
  }
31916
31918