@dartech/arsenal-ui 1.4.22 → 1.4.23
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/index.js +13 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -1568,7 +1568,6 @@ const formatPropertyValue = (propertyType, value, params) => {
|
|
1568
1568
|
break;
|
1569
1569
|
}
|
1570
1570
|
case PropertyType.JSON:
|
1571
|
-
case PropertyType.ANY:
|
1572
1571
|
try {
|
1573
1572
|
if (typeof value !== 'string') {
|
1574
1573
|
parsedValue = JSON.stringify(value);
|
@@ -1579,6 +1578,19 @@ const formatPropertyValue = (propertyType, value, params) => {
|
|
1579
1578
|
parsedValue = null;
|
1580
1579
|
}
|
1581
1580
|
break;
|
1581
|
+
case PropertyType.ANY:
|
1582
|
+
try {
|
1583
|
+
if (typeof value === 'string') {
|
1584
|
+
parsedValue = JSON.parse(parsedValue);
|
1585
|
+
} else {
|
1586
|
+
parsedValue = value;
|
1587
|
+
}
|
1588
|
+
// parsedValue = JSON.parse(parsedValue as string);
|
1589
|
+
} catch (e) {
|
1590
|
+
// console.log(e);
|
1591
|
+
parsedValue = value;
|
1592
|
+
}
|
1593
|
+
break;
|
1582
1594
|
case PropertyType.ENTITY:
|
1583
1595
|
parsedValue = formatDefinitionData(params.properties, value);
|
1584
1596
|
break;
|