@xuda.io/xuda-worker-bundle-min 1.3.284 → 1.3.286

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 +11 -11
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -4326,6 +4326,7 @@ func.datasource.add_dynamic_field_to_data_feed = function (
4326
4326
  if (!_ds.dynamic_fields) {
4327
4327
  _ds.dynamic_fields = [];
4328
4328
  }
4329
+ _ds.data_feed.rows[_ds.currentRecordId][key] = val;
4329
4330
 
4330
4331
  // todo: check duplicates
4331
4332
  if (_ds.dynamic_fields.some((e) => e.data.field_id === key)) return;
@@ -4337,17 +4338,16 @@ func.datasource.add_dynamic_field_to_data_feed = function (
4337
4338
  .toLowerCase();
4338
4339
  };
4339
4340
 
4340
- // _ds.data_feed.push({
4341
- // id: Date.now(),
4342
- // data: {
4343
- // type: "virtual",
4344
- // field_id: key,
4345
- // },
4346
- // props: {
4347
- // fieldType: val ? toType(val) : "string",
4348
- // },
4349
- // });
4350
- _ds.data_feed.rows[_ds.currentRecordId][key] = val;
4341
+ _ds.dynamic_fields.push({
4342
+ id: crypto.randomUUID(),
4343
+ data: {
4344
+ type: "virtual",
4345
+ field_id: key,
4346
+ },
4347
+ props: {
4348
+ fieldType: val ? toType(val) : "string",
4349
+ },
4350
+ });
4351
4351
  };
4352
4352
  const get_merge_progFields_with_dynamic_fields = async function (
4353
4353
  SESSION_ID,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.284",
3
+ "version": "1.3.286",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {