pref: fix codecov problem

This commit is contained in:
zy410419243 2018-12-05 16:39:27 +08:00 committed by 偏右
parent 61ae2267c5
commit 4b6d2ede2f

View File

@ -866,8 +866,9 @@ export default class Table<T> extends React.Component<TableProps<T>, TableState<
typeof title !== 'number'
) {
const props = title.props;
const { children } = props;
if (props && props.children) {
return this.getColumnTitle(props.children, props);
return this.getColumnTitle(children, props);
}
} else {
return parentNode.title || title;