@xuda.io/xuda-worker-bundle-min 1.3.832 → 1.3.834

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 +7 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -32,6 +32,8 @@ glb.PROTECTED_VARS = [
32
32
  "_VAL",
33
33
  ];
34
34
 
35
+ glb.newRecord = 999999;
36
+
35
37
  func.common = {};
36
38
  func.common.find_item_by_key = function (arr, key, val) {
37
39
  return _.find(arr, function (e) {
@@ -3024,7 +3026,11 @@ func.datasource.render_fields_form = async function (
3024
3026
  try {
3025
3027
  row_idx = func.common.find_ROWID_idx(_ds, data._ROWID);
3026
3028
  } catch (error) {
3027
- _ds.data_feed.rows.push({ _ROWID: data._ROWID });
3029
+ if (data._ROWID === "newRecord") {
3030
+ _ds.data_feed.rows[glb.newRecord] = { _ROWID: data._ROWID };
3031
+ } else {
3032
+ _ds.data_feed.rows.push({ _ROWID: data._ROWID });
3033
+ }
3028
3034
  row_idx = func.common.find_ROWID_idx(_ds, data._ROWID);
3029
3035
  }
3030
3036
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.832",
3
+ "version": "1.3.834",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {