Skip to content

Commit

Permalink
Fix [Artifacts] Uncaught runtime error for artifact source path (#3080)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariana-furyk authored Feb 4, 2025
1 parent f2167d7 commit 3d3079e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/common/CopyToClipboard/CopyToClipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const CopyToClipboard = ({
return (
<div className={className} data-testid="copy-to-clipboard">
{children ? (
<Tooltip template={<TextTooltipTemplate text={tooltipText} />}>
<Tooltip template={<TextTooltipTemplate text={tooltipText} />} textShow>
<span onClick={() => copyToClipboard(textToCopy)}>{children}</span>
</Tooltip>
) : (
Expand Down
7 changes: 4 additions & 3 deletions src/components/DetailsInfo/detailsInfo.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ export const generateProducerDetailsInfo = (selectedItem, isDetailsPopUp) => {
openPopUp(JobPopUp, { jobData })
}

if (isUri) {
if (isUri && selectedItem.producer.name !== 'UI') {
// value is in the form of: project/uid-iteration
const [project, rest] = value.split('/')
const [uid, iter] = rest?.split('-') ?? []
Expand All @@ -301,8 +301,9 @@ export const generateProducerDetailsInfo = (selectedItem, isDetailsPopUp) => {
</div>
<DetailsInfoItem
item={{
shouldPopUp: isUri,
handleClick: () => isUri && handleOpenJobDetails(producerData)
shouldPopUp: isUri && selectedItem.producer.name !== 'UI',
handleClick: () => isUri && handleOpenJobDetails(producerData),
copyToClipboard: isUri && selectedItem.producer.name === 'UI'
}}
info={value}
isDetailsPopUp={isDetailsPopUp}
Expand Down

0 comments on commit 3d3079e

Please sign in to comment.