neo.mjs 4.0.43 → 4.0.44
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/package.json
CHANGED
|
@@ -227,14 +227,14 @@ class RecordFactory extends Base {
|
|
|
227
227
|
* @returns {*}
|
|
228
228
|
*/
|
|
229
229
|
parseRecordValue(field, value, recordConfig) {
|
|
230
|
-
let mapping =
|
|
230
|
+
let mapping = field.mapping,
|
|
231
231
|
type = field.type?.toLowerCase();
|
|
232
232
|
|
|
233
233
|
// only trigger mappings for initial values
|
|
234
234
|
// dynamic changes of a field will not pass the recordConfig
|
|
235
235
|
if (mapping && recordConfig) {
|
|
236
236
|
let ns = mapping.split('.'),
|
|
237
|
-
key =
|
|
237
|
+
key = ns.pop();
|
|
238
238
|
|
|
239
239
|
ns = Neo.ns(ns, true, recordConfig);
|
|
240
240
|
value = ns[key];
|