ngx-vector-components 4.16.0 → 4.16.1

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.
@@ -395,7 +395,16 @@ class ObjectUtil {
395
395
  if (!obj) {
396
396
  return {};
397
397
  }
398
- return Object.keys(obj).reduce((acc, curr) => ({ ...acc, [curr]: obj[curr]?.code || obj[curr].code }), {});
398
+ return Object.keys(obj).reduce((acc, curr) => {
399
+ let value = obj[curr];
400
+ try {
401
+ value = JSON.parse(obj[curr]);
402
+ }
403
+ catch (_) {
404
+ value = obj[curr];
405
+ }
406
+ return { ...acc, [curr]: value?.code || value };
407
+ }, {});
399
408
  }
400
409
  }
401
410