Skip to content

Commit 62bad31

Browse files
authored
Fixed grouping apis subscriptions in test console selector (#2665)
1 parent c4816c1 commit 62bad31

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/operations/operation-details/ko/runtime/authorization.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,8 @@ export class Authorization {
449449
});
450450

451451
const apiSubscriptions = allSubscriptions.filter(subscription => this.productService.isProductScope(subscription.scope, this.api().name));
452+
const apiKeys: SubscriptionOption[] = [];
452453
apiSubscriptions.forEach(subscription => {
453-
const apiKeys: SubscriptionOption[] = [];
454454
apiKeys.push({
455455
name: `Primary: ${subscription.name?.trim() || subscription.primaryKey.substr(0, 4)}`,
456456
value: subscription.primaryKey
@@ -460,10 +460,10 @@ export class Authorization {
460460
name: `Secondary: ${subscription.name?.trim() || subscription.secondaryKey.substr(0, 4)}`,
461461
value: subscription.secondaryKey
462462
});
463-
if(apiKeys.length > 0) {
464-
availableProducts.push({ name: "Apis", subscriptionKeys: apiKeys });
465-
}
466463
});
464+
if(apiKeys.length > 0) {
465+
availableProducts.push({ name: "Apis", subscriptionKeys: apiKeys });
466+
}
467467

468468
this.isSubscriptionListEmptyDueToFilter(availableProducts.length == 0 && this.subscriptionsPattern() !== undefined);
469469
this.products(availableProducts);

0 commit comments

Comments
 (0)