diff --git a/marketplace-ui/src/app/modules/product/product-detail/product-detail-feedback/product-feedbacks-panel/product-feedback.service.ts b/marketplace-ui/src/app/modules/product/product-detail/product-detail-feedback/product-feedbacks-panel/product-feedback.service.ts index 6859da78..724b2f0a 100644 --- a/marketplace-ui/src/app/modules/product/product-detail/product-detail-feedback/product-feedbacks-panel/product-feedback.service.ts +++ b/marketplace-ui/src/app/modules/product/product-detail/product-detail-feedback/product-feedbacks-panel/product-feedback.service.ts @@ -93,10 +93,7 @@ export class ProductFeedbackService { .set('sort', sort); const requestURL = `${FEEDBACK_API_URL}/product/${productId}`; return this.http - .get(requestURL, { - params: requestParams, - context: new HttpContext().set(ForwardingError, true) - }) + .get(requestURL, { params: requestParams }) .pipe( tap(response => { if (page === 0) { @@ -175,4 +172,4 @@ export class ProductFeedbackService { this.page.set(0); return this.findProductFeedbacksByCriteria(); } -} \ No newline at end of file +} diff --git a/marketplace-ui/src/app/modules/product/product-detail/product-detail.component.ts b/marketplace-ui/src/app/modules/product/product-detail/product-detail.component.ts index 1d64e2e4..33161ff9 100644 --- a/marketplace-ui/src/app/modules/product/product-detail/product-detail.component.ts +++ b/marketplace-ui/src/app/modules/product/product-detail/product-detail.component.ts @@ -168,8 +168,7 @@ export class ProductDetailComponent { }).subscribe(res => { this.handleProductDetail(res.productDetail); this.productFeedbackService.handleFeedbackApiResponse( - res.productFeedBack - ); + res.productFeedBack); this.updateDropdownSelection(); this.checkMediaSize(); this.route.queryParams.subscribe(params => { @@ -181,8 +180,8 @@ export class ProductDetailComponent { .catch(() => this.removeQueryParam()); } }); - this.loadingService.hideLoading(LoadingComponentId.DETAIL_PAGE); }); + this.loadingService.hideLoading(LoadingComponentId.DETAIL_PAGE); } }