@contrail/flexplm 1.1.3 → 1.1.4

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.
@@ -94,7 +94,7 @@ class DataConverter {
94
94
  const propertyType = prop['propertyType'];
95
95
  let value;
96
96
  if (['choice', 'multi_select'].includes(propertyType)) {
97
- const options = prop['options'];
97
+ const options = prop['options'] || [];
98
98
  if ('choice' === propertyType) {
99
99
  if (nd) {
100
100
  const option = options.find(option => option.value == nd);
@@ -102,7 +102,7 @@ class DataConverter {
102
102
  value = Object.assign({}, option);
103
103
  }
104
104
  }
105
- else {
105
+ if (!value) {
106
106
  value = {};
107
107
  }
108
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/flexplm",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Library used for integration with flexplm.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",