@hulkapps/app-manager-vue 3.1.20 → 3.1.21

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hulkapps/app-manager-vue",
3
- "version": "3.1.20",
3
+ "version": "3.1.21",
4
4
  "description": "Vue SDK to render app manager contents",
5
5
  "main": "dist/app-manager-vue.ssr.js",
6
6
  "browser": "dist/app-manager-vue.esm.js",
@@ -396,7 +396,7 @@ export default {
396
396
  if (this.discount_code !== null) {
397
397
  params['discount_code'] = this.discount_code;
398
398
  }
399
- params['frontend_sdk_version'] = "3.1.20"
399
+ params['frontend_sdk_version'] = "3.1.21"
400
400
  let {data} = await axios.get(`${this.app_manager_config.baseUrl}/api/app-manager/plans`, {params: params}).catch(error => {
401
401
  console.error(error)
402
402
  });
@@ -142,10 +142,15 @@ export default {
142
142
 
143
143
  return this.normalizeSortOrder(a.display_order) - this.normalizeSortOrder(b.display_order);
144
144
  })
145
- .map((feature) => ({
146
- ...feature,
147
- value: plan.features[feature.uuid]?.value ?? plan.features[feature.uuid],
148
- }));
145
+ .map((feature) => {
146
+ const assignedFeature = plan.features[feature.uuid];
147
+ return {
148
+ ...feature,
149
+ value: assignedFeature && assignedFeature.value !== undefined
150
+ ? assignedFeature.value
151
+ : assignedFeature,
152
+ };
153
+ });
149
154
  },
150
155
  preparePlanFeatures(plan) {
151
156
  const highlights = this.getSortedPlanHighlights(plan);