@dartech/arsenal-ui 1.4.22 → 1.4.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +13 -1
  2. 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dartech/arsenal-ui",
3
- "version": "1.4.22",
3
+ "version": "1.4.23",
4
4
  "author": "DAR",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"