Skip to content

Commit

Permalink
Merge branch 'link-labels-hotfix' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
konzz committed Feb 25, 2025
2 parents 47abc6b + 7814bef commit 17af213
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/react/Metadata/components/Metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ const renderRelationshipLinks = (linksProp, compact) => {
const renderLink = (prop, compact) => {
const { url, label } = prop.value;
const renderLabel = label || url;
if (!renderLabel) {
return null;
}

return (
<a href={url} target="_blank" rel="noopener noreferrer">
{renderLabel.length > 40 && compact ? `${renderLabel.substring(0, 40)}...` : renderLabel}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uwazi",
"version": "1.202.0-rc2",
"version": "1.202.0-rc3",
"description": "Uwazi is a free, open-source solution for organising, analysing and publishing your documents.",
"keywords": [
"react"
Expand Down

0 comments on commit 17af213

Please sign in to comment.