@open3cl/engine 1.2.1 → 1.2.2

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/package.json +1 -1
  2. package/utils.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open3cl/engine",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Open Source 3CL-DPE engine",
5
5
  "main": "index.js",
6
6
  "directories": {
package/utils.js CHANGED
@@ -288,7 +288,7 @@ export function useEnumAsString(jsonObj) {
288
288
  for (const key in jsonObj) {
289
289
  if (jsonObj.hasOwnProperty(key)) {
290
290
  if (key.startsWith('enum_')) {
291
- jsonObj[key] = jsonObj[key].toString();
291
+ if (jsonObj[key] !== null) jsonObj[key] = jsonObj[key].toString();
292
292
  } else if (typeof jsonObj[key] === 'object') {
293
293
  useEnumAsString(jsonObj[key]);
294
294
  }