ti2-tourplan 1.0.24 → 1.0.25

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 +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -288,7 +288,7 @@ class Plugin {
288
288
  const allotmentResponse = [];
289
289
  allotment.forEach(currentAllotment => {
290
290
  const appliesToCode = R.path(['AllocationAppliesTo', 0, 'AllocationType', 0], currentAllotment);
291
- const optionCodes = R.path(['AllocationAppliesTo', 0, 'OptionCode'], currentAllotment);
291
+ const optionCodes = R.pathOr([], ['AllocationAppliesTo', 0, 'OptionCode'], currentAllotment);
292
292
  const supplierCode = R.path(['SupplierCode', 0], currentAllotment);
293
293
  const appliesTo = {
294
294
  S: 'Supplier',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2-tourplan",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "Tourplan's TI2 Plugin",
5
5
  "main": "index.js",
6
6
  "scripts": {