Table: Fix edge case where text wrapping crashes on undefined header widths (#91850)

Make sure we don't read from header groups if it's undefined
pull/91938/head
Kyle Cunningham 11 months ago committed by GitHub
parent 8c4da28d7c
commit 40144eb3c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/grafana-ui/src/components/Table/utils.ts

@ -645,7 +645,7 @@ export function guessTextBoundingBox(
lineHeight: number,
defaultRowHeight: number
) {
const width = Number(headerGroup.width ?? 300);
const width = Number(headerGroup?.width ?? 300);
const LINE_SCALE_FACTOR = 1.17;
const LOW_LINE_PAD = 42;

Loading…
Cancel
Save