We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86575df commit e09dac8Copy full SHA for e09dac8
packages/core/src/components/DataTable/ColumnLabels.tsx
@@ -74,7 +74,7 @@ export default function ColumnLabels({
74
75
// TODO: The types here are very wrong and confusing.
76
const { children } = col.props;
77
- const key = String(children[0].props.children);
+ const key = children[0].props.children ? String(children[0].props.children) : '';
78
const label = columnToLabel[key]
79
? columnToLabel[key]
80
: key && caseColumnLabel(key, columnLabelCase!);
0 commit comments