Skip to content

Commit c96d87d

Browse files
committed
fix(ResourceTable): Fall back to props.title if props.customTitle is missing
Fixes a bug where `title` prop would not be used if `customTitle` was missing
1 parent 7581950 commit c96d87d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ResourceTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export class ResourceTable extends React.PureComponent<Props, State> {
108108
<Table
109109
rowKey={this._rowKey}
110110
{...tableProps}
111-
title={customTitle ? this._customTitle : undefined}
111+
title={customTitle ? this._customTitle : tableProps.title}
112112
pagination={this.pagination()}
113113
loading={loading}
114114
dataSource={rows}

0 commit comments

Comments
 (0)