@xuda.io/xuda-worker-bundle-min 1.3.856 → 1.3.858

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 +15 -15
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -3165,7 +3165,7 @@ func.datasource.render_fields_form = async function (
3165
3165
  continue;
3166
3166
  }
3167
3167
  if (val.data.type === "table" || val.data.type === "datasource") {
3168
- if (typeof raw_data_row[fieldId] === "undefined") {
3168
+ if (typeof raw_data_row.value[fieldId] === "undefined") {
3169
3169
  throw "field do not exist in data: " + fieldId;
3170
3170
  }
3171
3171
  _ds.data_feed.rows[row_idx][fieldId] = await get_value(
@@ -3188,22 +3188,22 @@ func.datasource.run_rows_form = async function (
3188
3188
  var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[dataSourceSession];
3189
3189
  if (!_ds) return;
3190
3190
  let _ROWID = raw_data_row.id;
3191
- var val = _ds.data_feed.rows[rowIdxP];
3191
+ // var val = _ds.data_feed.rows[rowIdxP];
3192
3192
 
3193
- var idx;
3193
+ var idx = rowIdxP;
3194
3194
 
3195
- try {
3196
- if (typeof val !== "undefined") {
3197
- idx = rowIdxP;
3198
- _ROWID = val._ROWID;
3199
- } else {
3200
- _ROWID = "newRecord";
3201
- val = _ds.data_feed.rows.push({ _ROWID });
3202
- idx = func.common.find_ROWID_idx(_ds, _ROWID);
3203
- }
3204
- } catch (e) {
3205
- console.error(e);
3206
- }
3195
+ // try {
3196
+ // if (typeof val !== "undefined") {
3197
+ // idx = rowIdxP;
3198
+ // _ROWID = val._ROWID;
3199
+ // } else {
3200
+ // _ROWID = "newRecord";
3201
+ // val = _ds.data_feed.rows.push({ _ROWID });
3202
+ // idx = func.common.find_ROWID_idx(_ds, _ROWID);
3203
+ // }
3204
+ // } catch (e) {
3205
+ // console.error(e);
3206
+ // }
3207
3207
 
3208
3208
  _ds.currentRecordId = _ROWID; // set temporary to allow expression decoder work
3209
3209
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.856",
3
+ "version": "1.3.858",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {