@xuda.io/runtime-bundle 1.0.616 → 1.0.618

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.
@@ -32075,7 +32075,11 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32075
32075
  } else {
32076
32076
  $elm.data('xuTeleportData', []);
32077
32077
  for (const [key, node] of Object.entries(nodeP.children)) {
32078
- const $teleport_elm = await func.UI.screen.render_ui_tree(SESSION_ID, $(val.value), node, parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, node, null, $root_container);
32078
+ const $to_container = $(val.value);
32079
+ if (!$to_container?.length) {
32080
+ return console.error(`container ${val.value} for xuTeleportData not found`);
32081
+ }
32082
+ const $teleport_elm = await func.UI.screen.render_ui_tree(SESSION_ID, $to_container, node, parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, node, null, $root_container);
32079
32083
 
32080
32084
  $elm.data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
32081
32085
  $teleport_elm.attr('xu-teleport-parent-id', $elm.attr('xu-ui-id'));
@@ -32984,7 +32988,10 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
32984
32988
  }
32985
32989
  // handle xu attributes
32986
32990
  try {
32987
- $elm.data().xuAttributes[key] = val;
32991
+ if (elm?.data()?.xuAttributes) {
32992
+ // in some cases xu data delete in purpose when refreshing the screen
32993
+ $elm.data().xuAttributes[key] = val;
32994
+ }
32988
32995
  } catch (error) {
32989
32996
  debugger;
32990
32997
  console.error(error);