framework-do-dede 3.0.32 → 3.0.33
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/dist/application/entity.js +12 -10
- package/package.json +1 -1
|
@@ -15,12 +15,13 @@ export class Entity {
|
|
|
15
15
|
const serializedValue = propertiesConfigs[propName].serialize(value);
|
|
16
16
|
if (serializedValue && typeof serializedValue === 'object' && !Array.isArray(serializedValue)) {
|
|
17
17
|
const entries = Object.entries(serializedValue);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
for (const [serializedKey, serializedPropValue] of entries) {
|
|
19
|
+
let currentValue = serializedPropValue;
|
|
20
|
+
if (!currentValue)
|
|
21
|
+
currentValue = null;
|
|
22
|
+
result[serializedKey] = currentValue;
|
|
23
23
|
}
|
|
24
|
+
continue;
|
|
24
25
|
}
|
|
25
26
|
else {
|
|
26
27
|
value = serializedValue;
|
|
@@ -48,12 +49,13 @@ export class Entity {
|
|
|
48
49
|
const serializedValue = await propertiesConfigs[propName].serialize(value);
|
|
49
50
|
if (serializedValue && typeof serializedValue === 'object' && !Array.isArray(serializedValue)) {
|
|
50
51
|
const entries = Object.entries(serializedValue);
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
for (const [serializedKey, serializedPropValue] of entries) {
|
|
53
|
+
let currentValue = serializedPropValue;
|
|
54
|
+
if (!currentValue)
|
|
55
|
+
currentValue = null;
|
|
56
|
+
result[serializedKey] = currentValue;
|
|
56
57
|
}
|
|
58
|
+
continue;
|
|
57
59
|
}
|
|
58
60
|
else {
|
|
59
61
|
value = serializedValue;
|