Skip to content

Commit

Permalink
MARP-760 Handle Sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
tvtphuc-axonivy committed Aug 30, 2024
1 parent c9ea382 commit 3048987
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,10 @@ export class ProductDetailVersionActionComponent implements AfterViewInit {
if (this.versions().length === 0) {
this.productService.sendRequestToGetProductVersionsForDesigner(this.productId
).subscribe(data => {
const versionMap = data
.map(dataVersionAndUrl => dataVersionAndUrl.version)
.map(version => VERSION.displayPrefix.concat(version));
data.forEach(data => {
const currentVersion = 'Version '.concat(data.version);
const versionAndUrl: ItemDropdown = { value: currentVersion, label: currentVersion, metaDataJsonUrl: data.url };
const versionMap = data.map(dataVersionAndUrl => dataVersionAndUrl.version).map(version => VERSION.displayPrefix.concat(version));
data.forEach(dataVersionAndUrl => {
const currentVersion = 'Version '.concat(dataVersionAndUrl.version);
const versionAndUrl: ItemDropdown = { value: currentVersion, label: currentVersion, metaDataJsonUrl: dataVersionAndUrl.url };
this.versionDropdownInDesigner.push(versionAndUrl);
});
this.versions.set(versionMap);
Expand Down

0 comments on commit 3048987

Please sign in to comment.