@xuda.io/runtime-bundle 1.0.1264 → 1.0.1265

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.
@@ -27842,10 +27842,10 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
27842
27842
  }
27843
27843
 
27844
27844
  const fx = {
27845
- update_datasource: async function () {
27845
+ update_datasource: async function (currentRecordId) {
27846
27846
  if (queue_obj?.paramsP) {
27847
27847
  var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[queue_obj.dsSession];
27848
- _ds.currentRecordId = queue_obj.paramsP.currentRecordId;
27848
+ _ds.currentRecordId = currentRecordId || queue_obj.paramsP.currentRecordId;
27849
27849
 
27850
27850
  var datasource_changes = {
27851
27851
  [_ds.dsSession]: { [_ds.currentRecordId]: 'set' },
@@ -27983,6 +27983,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
27983
27983
  render_viewport: async function () {
27984
27984
  const { nodeP, $div, parent_infoP, $root_container, jobNoP, is_skeleton, paramsP, $container } = queue_obj?.paramsP || {};
27985
27985
  if (nodeP?.children?.length && !$div.children().length) {
27986
+ await fx.update_datasource($div?.data()?.xuData?.currentRecordId);
27986
27987
  $div.removeClass('skeleton');
27987
27988
  for await (const [key, val] of Object.entries(nodeP.children)) {
27988
27989
  const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $div, nodeP.children[key], parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, nodeP, null, $root_container);