Skip to content

Commit

Permalink
Fix sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
phhung-axonivy committed Sep 6, 2024
1 parent a6d3c3f commit 895d692
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion marketplace-ui/src/app/modules/product/product.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ export class ProductService {

sendRequestToGetProductVersionsForDesigner(productId: string) {
const url = `api/product-details/${productId}/designerversions`;
return this.httpClient.get<VersionAndUrl[]>(url, { headers: { 'X-Requested-By': 'ivy' } });
const headers = { 'X-Requested-By': 'ivy' };
const options = { headers };
return this.httpClient.get<VersionAndUrl[]>(url, options);
}
}

0 comments on commit 895d692

Please sign in to comment.