@xuda.io/runtime-bundle 1.0.772 → 1.0.774

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.
@@ -32096,6 +32096,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32096
32096
 
32097
32097
  const common_fx = {
32098
32098
  'xu-ref': async function ($elm, val, dsSession) {
32099
+ if (!val.value) return {};
32100
+
32099
32101
  func.UI.update_xu_ref(SESSION_ID, dsSession || paramsP.dsSessionP, val.value, $elm);
32100
32102
 
32101
32103
  // Select the node that will be observed for mutations
@@ -32270,7 +32272,9 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32270
32272
  if (reference_source_obj.ret.type === 'array') {
32271
32273
  if (iterate_info.iterator_val === bind_field_id) {
32272
32274
  const arr_idx = Number($elm?.data()?.xuData?.iterate_info._key);
32273
- let new_arr = _.cloneDeep(reference_source_obj.ret.value);
32275
+ // let new_arr = _.cloneDeep(reference_source_obj.ret.value);
32276
+ const dataset_arr = await await func.datasource.get_value(SESSION_ID, reference_source_obj.fieldIdP, _ds, reference_source_obj.currentRecordId);
32277
+ let new_arr = _.cloneDeep(dataset_arr);
32274
32278
  // if (field_prop.props.fieldType === 'object' && !val_is_reference_field) {
32275
32279
  if (field_prop.props.fieldType === 'object' && val_is_reference_field) {
32276
32280
  let obj_item = new_arr[arr_idx];