From 895d6926f25b677cf99a3d1340496926c42d5ba5 Mon Sep 17 00:00:00 2001 From: PHAM HOANG HUNG Date: Fri, 6 Sep 2024 16:23:26 +0700 Subject: [PATCH] Fix sonar --- marketplace-ui/src/app/modules/product/product.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/marketplace-ui/src/app/modules/product/product.service.ts b/marketplace-ui/src/app/modules/product/product.service.ts index 7cdd6179d..49f11c76f 100644 --- a/marketplace-ui/src/app/modules/product/product.service.ts +++ b/marketplace-ui/src/app/modules/product/product.service.ts @@ -89,6 +89,8 @@ export class ProductService { sendRequestToGetProductVersionsForDesigner(productId: string) { const url = `api/product-details/${productId}/designerversions`; - return this.httpClient.get(url, { headers: { 'X-Requested-By': 'ivy' } }); + const headers = { 'X-Requested-By': 'ivy' }; + const options = { headers }; + return this.httpClient.get(url, options); } }