@xuda.io/xuda-worker-bundle-min 1.3.857 → 1.3.859

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.
Files changed (2) hide show
  1. package/index.js +4 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2730,6 +2730,7 @@ func.datasource.execute = async function (
2730
2730
  break;
2731
2731
 
2732
2732
  case "component":
2733
+ _raw_data_rows = _ds?.v.raw_data?.rows || [];
2733
2734
  _ds.rows_processed = 0;
2734
2735
  _ds.viewRangeExp_rows_deleted = 0;
2735
2736
 
@@ -2787,7 +2788,7 @@ func.datasource.execute = async function (
2787
2788
  break;
2788
2789
  }
2789
2790
 
2790
- _ds.firstRecordId = _ds.v.raw_data.rows[0].id;
2791
+ _ds.firstRecordId = _raw_data_rows[0].id;
2791
2792
 
2792
2793
  const finish_form = async function () {
2793
2794
  // check if locatedRecordId exist in SESSION_OBJ[SESSION_ID].DS_GLB
@@ -2810,9 +2811,7 @@ func.datasource.execute = async function (
2810
2811
  _ds.currentRecordId = _ds.finalRecordId;
2811
2812
  };
2812
2813
 
2813
- for await (const [key, raw_data_row] of Object.entries(
2814
- _ds.v.raw_data.rows
2815
- )) {
2814
+ for await (const [key, raw_data_row] of Object.entries(_raw_data_rows)) {
2816
2815
  const idx = Number(key);
2817
2816
 
2818
2817
  if (await get_before_record_count()) {
@@ -3165,7 +3164,7 @@ func.datasource.render_fields_form = async function (
3165
3164
  continue;
3166
3165
  }
3167
3166
  if (val.data.type === "table" || val.data.type === "datasource") {
3168
- if (typeof raw_data_row[fieldId] === "undefined") {
3167
+ if (typeof raw_data_row.value[fieldId] === "undefined") {
3169
3168
  throw "field do not exist in data: " + fieldId;
3170
3169
  }
3171
3170
  _ds.data_feed.rows[row_idx][fieldId] = await get_value(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.857",
3
+ "version": "1.3.859",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {