This commit is contained in:
bakhirev 2024-07-01 18:27:30 +03:00
parent b35a6a9c6e
commit 654a7cdf23

View file

@ -13,11 +13,14 @@ function PRLink({ prId, text, className }: IPRLinkProps) {
if (!prId) return null; if (!prId) return null;
const prefix = userSettings?.settings?.linksPrefix?.task || '/'; const prefix = userSettings?.settings?.linksPrefix?.task || '/';
const formattedTask = prId?.[0] === '#'
? prId.replace('#', '')
: prId;
return ( return (
<ExternalLink <ExternalLink
text={text || 'PR'} text={text || 'PR'}
link={`${prefix}${prId}`} link={`${prefix}${formattedTask}`}
className={className} className={className}
/> />
); );