We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f9105f commit da4fe8cCopy full SHA for da4fe8c
packages/ui-table/src/Table/Head/index.tsx
@@ -68,7 +68,7 @@ class Head extends Component<TableHeadProps> {
68
let sortable = false
69
if (firstRow && firstRow.props && firstRow.props.children) {
70
Children.forEach(firstRow.props.children, (grandchild) => {
71
- if (grandchild.props.onRequestSort) {
+ if (grandchild?.props?.onRequestSort) {
72
sortable = true
73
return
74
}
0 commit comments