TableNG: Fix crash with malformed/invalid data links (#109920)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user