Skip to content

Commit

Permalink
Fixed issue with load canceled subscriptions (#1033)
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrik authored Nov 18, 2020
1 parent 23ffd3f commit 49dde68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/productService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class ProductService {
.get<ApiContract>(`/apis/${apiName}`)
.then(api => {
subscriptionModel.productName = `API: ${api.properties.displayName}`;
});
}).catch(error => console.log(`Get API error: ${error.message}`));

promises.push(apiPromise);
} else {
Expand All @@ -140,7 +140,7 @@ export class ProductService {
.get<ProductContract>(`/products/${productName}`)
.then(product => {
subscriptionModel.productName = product.properties.displayName;
});
}).catch(error => console.log(`Get product error: ${error.message}`));

promises.push(productPromise);
}
Expand Down

0 comments on commit 49dde68

Please sign in to comment.