@posiwise/admin-module 0.0.194 → 0.0.195

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.
@@ -1037,6 +1037,10 @@ class DomainConfigBuildComponent extends AppBaseComponent {
1037
1037
  this.productsList = this.groupProducts(res?.getProduct?.products);
1038
1038
  // config to patch values
1039
1039
  this.data = res.config;
1040
+ const data = this.data;
1041
+ if (!Array.isArray(data.ab_tests)) {
1042
+ data.ab_tests = [];
1043
+ }
1040
1044
  const demo = this.data.book_demo;
1041
1045
  const demoGroup = this.form.get('book_demo');
1042
1046
  const itemsArray = demoGroup.get('items');
@@ -6760,7 +6764,9 @@ class SubscriptionProductDetailsComponent extends AppBaseComponent {
6760
6764
  this.form.get('expires_at').disable();
6761
6765
  this.disableExpiresAt = true;
6762
6766
  }
6763
- const externalPayment = this.permissionService.isSuperAdmin() ?? !response?.stripe_subscription_id;
6767
+ const externalPayment = this.permissionService.isSuperAdmin() ||
6768
+ this.permissionService.isUserSubscriptionSuperAdmin() ||
6769
+ !response?.stripe_subscription_id;
6764
6770
  if (externalPayment) {
6765
6771
  this.form.get('external_payment').enable();
6766
6772
  }