@dartech/arsenal-ui 1.4.56 → 1.4.57

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.
Files changed (2) hide show
  1. package/index.js +16 -11
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2261,10 +2261,15 @@ const propertiesArrayToObject = (properties, isGlobalParameter) => {
2261
2261
  resultProperty['isViewableInList'] = property.isViewableInList;
2262
2262
  }
2263
2263
  if (uiSettings) {
2264
- try {
2265
- resultProperty.uiSettings = JSON.parse(uiSettings);
2266
- } catch (e) {
2267
- console.log(e);
2264
+ if (typeof uiSettings === 'string') {
2265
+ try {
2266
+ resultProperty.uiSettings = JSON.parse(uiSettings);
2267
+ } catch (e) {
2268
+ console.log(e);
2269
+ resultProperty.uiSettings = uiSettings;
2270
+ }
2271
+ } else {
2272
+ resultProperty.uiSettings = uiSettings;
2268
2273
  }
2269
2274
  } else {
2270
2275
  resultProperty.uiSettings = null;
@@ -2312,13 +2317,13 @@ function propertiesObjectToArray(properties, fields) {
2312
2317
  propObj.defaultValue = '';
2313
2318
  }
2314
2319
  }
2315
- if (propObj['uiSettings']) {
2316
- try {
2317
- propObj.uiSettings = JSON.stringify(propObj.uiSettings, null, 2);
2318
- } catch (error) {
2319
- propObj.uiSettings = '';
2320
- }
2321
- }
2320
+ // if (propObj['uiSettings']) {
2321
+ // try {
2322
+ // propObj.uiSettings = JSON.stringify(propObj.uiSettings, null, 2);
2323
+ // } catch (error) {
2324
+ // propObj.uiSettings = '';
2325
+ // }
2326
+ // }
2322
2327
  if (propObj['isMultiple']) {
2323
2328
  if ('defaultValues' in propObj) {
2324
2329
  propObj['defaultValue'] = propObj.defaultValues;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dartech/arsenal-ui",
3
- "version": "1.4.56",
3
+ "version": "1.4.57",
4
4
  "author": "DAR",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"