Skip to content

Commit da4fe8c

Browse files
committed
fix(ui-table): fix table header
1 parent 4f9105f commit da4fe8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ui-table/src/Table/Head/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class Head extends Component<TableHeadProps> {
6868
let sortable = false
6969
if (firstRow && firstRow.props && firstRow.props.children) {
7070
Children.forEach(firstRow.props.children, (grandchild) => {
71-
if (grandchild.props.onRequestSort) {
71+
if (grandchild?.props?.onRequestSort) {
7272
sortable = true
7373
return
7474
}

0 commit comments

Comments
 (0)