diff --git a/plugins/woocommerce-admin/client/analytics/components/report-table/index.js b/plugins/woocommerce-admin/client/analytics/components/report-table/index.js index 2072da02551..e96ac886ae6 100644 --- a/plugins/woocommerce-admin/client/analytics/components/report-table/index.js +++ b/plugins/woocommerce-admin/client/analytics/components/report-table/index.js @@ -118,7 +118,7 @@ ReportTable.propTypes = { }; ReportTable.defaultProps = { - tableData: null, + tableData: {}, tableQuery: {}, }; diff --git a/plugins/woocommerce-admin/client/store/reports/test/utils.js b/plugins/woocommerce-admin/client/store/reports/test/utils.js index 6cc0881d13f..55346981425 100644 --- a/plugins/woocommerce-admin/client/store/reports/test/utils.js +++ b/plugins/woocommerce-admin/client/store/reports/test/utils.js @@ -451,7 +451,9 @@ describe( 'getReportTableData()', () => { const response = { isError: false, isRequesting: false, - items: [], + items: { + data: [], + }, }; const query = { diff --git a/plugins/woocommerce-admin/client/store/reports/utils.js b/plugins/woocommerce-admin/client/store/reports/utils.js index 63b1d4af8ac..a9641791385 100644 --- a/plugins/woocommerce-admin/client/store/reports/utils.js +++ b/plugins/woocommerce-admin/client/store/reports/utils.js @@ -305,7 +305,9 @@ export function getReportTableData( endpoint, urlQuery, select, query = {} ) { query: tableQuery, isRequesting: false, isError: false, - items: [], + items: { + data: [], + }, }; const items = getReportItems( endpoint, tableQuery );