Skip to content

Commit 30521fa

Browse files
committed
NCL-9126 Support duplicate licenses
1 parent 45bd487 commit 30521fa

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/components/AnalyzedArtifactsList/AnalyzedArtifactsList.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -331,12 +331,14 @@ export const AnalyzedArtifactsList = ({
331331
<DescriptionListDescription>
332332
{analyzedArtifact.licenses && analyzedArtifact.licenses.length > 0 ? (
333333
analyzedArtifact.licenses.map((license, index) => (
334-
<span key={index}>
335-
<a href={license.url} target="_blank" rel="noopener noreferrer">
336-
{license.spdxLicenseId}
337-
</a>
338-
{index < analyzedArtifact.licenses!.length - 1 && ', '}
339-
</span>
334+
<TooltipWrapper tooltip={license.sourceUrl}>
335+
<span key={index}>
336+
<a href={license.url} target="_blank" rel="noopener noreferrer">
337+
{license.spdxLicenseId}
338+
</a>
339+
{index < analyzedArtifact.licenses!.length - 1 && ', '}
340+
</span>
341+
</TooltipWrapper>
340342
))
341343
) : (
342344
<>

0 commit comments

Comments
 (0)