@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.
- package/index.js +11 -11
- 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
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
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,
|