@bedrockio/model 0.2.15 → 0.2.16
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.
|
@@ -22,8 +22,6 @@ function transformField(obj, field, options) {
|
|
|
22
22
|
if (Array.isArray(obj)) {
|
|
23
23
|
for (let el of obj) {
|
|
24
24
|
transformField(el, field, options);
|
|
25
|
-
// Delete ids in array elements.
|
|
26
|
-
delete el.id;
|
|
27
25
|
}
|
|
28
26
|
} else if ((0, _lodash.isPlainObject)(obj)) {
|
|
29
27
|
for (let [key, val] of Object.entries(obj)) {
|
package/package.json
CHANGED
package/src/serialization.js
CHANGED
|
@@ -20,8 +20,6 @@ function transformField(obj, field, options) {
|
|
|
20
20
|
if (Array.isArray(obj)) {
|
|
21
21
|
for (let el of obj) {
|
|
22
22
|
transformField(el, field, options);
|
|
23
|
-
// Delete ids in array elements.
|
|
24
|
-
delete el.id;
|
|
25
23
|
}
|
|
26
24
|
} else if (isPlainObject(obj)) {
|
|
27
25
|
for (let [key, val] of Object.entries(obj)) {
|