Skip to content

Commit

Permalink
fix(resource-group-software): fix usage example link and version spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
yomatters committed Nov 11, 2024
1 parent 6c2b2ac commit 8e34ed6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/resource-group-software.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ export default function ResourceGroupSoftware({ baseUri, infoGroupId }) {
)
result.push(
<> </>,
<a href={row.software_use_link} title={`Usage example for ${value}`}>
<a
href={row.software_use_link.split("\n")[0].trim()}
title={`Usage example for ${value}`}
>
<Icon name="terminal" />
</a>
);
Expand All @@ -85,7 +88,9 @@ export default function ResourceGroupSoftware({ baseUri, infoGroupId }) {
);
};
const versionsFormat = (value, row) => {
return value.map((item) => item.replace(`${row.rp_name}: `, ""));
return value.map((item) =>
item.replace(`${row.rp_name}: `, "").split(",").join(", ")
);
};
const columns = [
{
Expand Down

0 comments on commit 8e34ed6

Please sign in to comment.