File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/components/operations/operation-details/ko/runtime Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments