Customers Report: remove extended data call

This commit is contained in:
Paul Sealock 2019-01-17 10:10:23 +13:00
parent 219a36cb8e
commit c866d1e1e2
1 changed files with 5 additions and 8 deletions

View File

@ -115,9 +115,11 @@ export default class CustomersReportTable extends Component {
name
);
const dateRegistered = date_registered
? <Date date={ date_registered } visibleFormat={ defaultTableDateFormat } />
: '—';
const dateRegistered = date_registered ? (
<Date date={ date_registered } visibleFormat={ defaultTableDateFormat } />
) : (
'—'
);
return [
{
@ -174,11 +176,6 @@ export default class CustomersReportTable extends Component {
return (
<ReportTable
endpoint="customers"
extendItemsMethodNames={ {
load: 'getCustomers',
getError: 'getCustomersError',
isRequesting: 'isGetCustomersRequesting',
} }
getHeadersContent={ this.getHeadersContent }
getRowsContent={ this.getRowsContent }
itemIdField="id"