Skip to content

Commit

Permalink
fix(ResourceTable): Fall back to props.title if props.customTitle
Browse files Browse the repository at this point in the history
… is missing

Fixes a bug where `title` prop would not be used if `customTitle` was missing
  • Loading branch information
wms committed Oct 3, 2017
1 parent 7581950 commit c96d87d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ResourceTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class ResourceTable extends React.PureComponent<Props, State> {
<Table
rowKey={this._rowKey}
{...tableProps}
title={customTitle ? this._customTitle : undefined}
title={customTitle ? this._customTitle : tableProps.title}
pagination={this.pagination()}
loading={loading}
dataSource={rows}
Expand Down

0 comments on commit c96d87d

Please sign in to comment.