Null map values (#12017)

This commit is contained in:
Nidhi 2022-03-21 15:19:55 +05:30 committed by GitHub
parent aef4001fde
commit 079689951d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,11 +178,11 @@ public class DatabaseChangelog2 {
.forEach(k -> {
if (k != null) {
final Object oldValue = unpublishedFormData.get(k);
unpublishedFormData.put(k, Map.of(
unpublishedFormData.put(k, new HashMap<>(Map.of(
"data", oldValue,
"componentData", oldValue,
"viewType", "component"
));
)));
}
});
@ -232,11 +232,11 @@ public class DatabaseChangelog2 {
.forEach(k -> {
if (k != null) {
final Object oldValue = publishedFormData.get(k);
publishedFormData.put(k, Map.of(
publishedFormData.put(k, new HashMap<>(Map.of(
"data", oldValue,
"componentData", oldValue,
"viewType", "component"
));
)));
}
});
@ -311,11 +311,11 @@ public class DatabaseChangelog2 {
}
if (key != null) {
formDataMap.put(key,
Map.of(
new HashMap<>(Map.of(
"data", value,
"componentData", value,
"viewType", "component"
));
)));
}
}