@xuda.io/xuda-worker-bundle-min 1.3.283 → 1.3.285
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.
- package/index.js +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -4316,7 +4316,7 @@ func.datasource.get_pre_init_fields = function (
|
|
|
4316
4316
|
return; // inactive 021617
|
|
4317
4317
|
}; // temporary inactive, init preformed on the first round
|
|
4318
4318
|
|
|
4319
|
-
func.datasource.
|
|
4319
|
+
func.datasource.add_dynamic_field_to_data_feed = function (
|
|
4320
4320
|
SESSION_ID,
|
|
4321
4321
|
dsSessionP,
|
|
4322
4322
|
key,
|
|
@@ -4326,6 +4326,7 @@ func.datasource.add_dynamic_field_to_dataset = 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;
|
|
@@ -4338,7 +4339,7 @@ func.datasource.add_dynamic_field_to_dataset = function (
|
|
|
4338
4339
|
};
|
|
4339
4340
|
|
|
4340
4341
|
_ds.dynamic_fields.push({
|
|
4341
|
-
id:
|
|
4342
|
+
id: crypto.randomUUID(),
|
|
4342
4343
|
data: {
|
|
4343
4344
|
type: "virtual",
|
|
4344
4345
|
field_id: key,
|
|
@@ -4352,7 +4353,6 @@ const get_merge_progFields_with_dynamic_fields = async function (
|
|
|
4352
4353
|
SESSION_ID,
|
|
4353
4354
|
dsSessionP
|
|
4354
4355
|
) {
|
|
4355
|
-
debugger;
|
|
4356
4356
|
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[dsSessionP];
|
|
4357
4357
|
const _view_obj = await func.utils.VIEWS_OBJ.get(SESSION_ID, _ds.prog_id);
|
|
4358
4358
|
|