mirror of https://github.com/grafana/grafana.git
TableNG: Fix crash with malformed/invalid data links (#109920)
This commit is contained in:
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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue