TableNG: Fix crash with malformed/invalid data links (#109920)

This commit is contained in:
Leon Sorokin 2025-08-20 11:33:52 -05:00 committed by GitHub
parent 66dc5ea4fb
commit 5bbb7c1e2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ export const MaybeWrapWithLink = memo(({ field, rowIdx, children }: MaybeWrapWit
// as real, single link
if (linksCount === 1 && actionsCount === 0) {
let link = (getCellLinks(field, rowIdx) ?? [])[0];
return renderSingleLink(link, children);
return link != null ? renderSingleLink(link, children) : children;
}
// as faux link that acts as hit-area for tooltip activation
else if (linksCount + actionsCount > 0) {