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

This commit is contained in:
Leon Sorokin
2025-08-20 16:33:52 +00:00
committed by GitHub
parent 66dc5ea4fb
commit 5bbb7c1e2a
@@ -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) {