Skip to content

Commit

Permalink
fix getColumnTitle bug
Browse files Browse the repository at this point in the history
title: <div>
           <span>title</span>
           null
        </div>
  • Loading branch information
geraldchen890806 authored and afc163 committed Dec 10, 2018
1 parent 13593a9 commit 1e04007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -882,8 +882,8 @@ export default class Table<T> extends React.Component<TableProps<T>, TableState<
}
if (!(title instanceof Function) && typeof title !== 'string' && typeof title !== 'number') {
const props = title.props;
const { children } = props;
if (props && props.children) {
const { children } = props;
return this.getColumnTitle(children, props);
}
} else {
Expand Down

0 comments on commit 1e04007

Please sign in to comment.