[#1703] updated json field string data normalizations and fixed the field vizualization in the Admin UI

This commit is contained in:
Gani Georgiev
2023-01-29 12:37:10 +02:00
parent c51148e4d7
commit deccb3dbdb
37 changed files with 174 additions and 81 deletions
+5 -1
View File
@@ -1065,7 +1065,11 @@ export default class CommonHelper {
return "false";
}
// array value
if (field?.type === "json") {
return 'null, "", [], {}';
}
// arrayable fields
if (["select", "relation", "file"].includes(field?.type) && field?.options?.maxSelect != 1) {
return "[]";
}