Skip to content

Commit

Permalink
bug fix: ATAG render will show blank when there is no URL
Browse files Browse the repository at this point in the history
  • Loading branch information
robyww committed Jul 10, 2024
1 parent 031ffd6 commit 5818560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/firefly/js/tables/ui/TableRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ export const ATag = React.memo(({cellInfo, label, title, href, target, style={},
label = html_regex.test(label) ? <div dangerouslySetInnerHTML={{__html: label}}/> : label;
}

return <Link {...{title, href, target, style}}> {label} </Link>;
return href ? <Link {...{title, href, target, style}}> {label} </Link> : '';
});

export const TextCell = React.memo(({cellInfo, text, ...rest}) => {
Expand Down

0 comments on commit 5818560

Please sign in to comment.