diff --git a/plugins/woocommerce-admin/client/analytics/components/leaderboard/test/index.js b/plugins/woocommerce-admin/client/analytics/components/leaderboard/test/index.js index 1cfc9e5c699..49cda5b6c5b 100644 --- a/plugins/woocommerce-admin/client/analytics/components/leaderboard/test/index.js +++ b/plugins/woocommerce-admin/client/analytics/components/leaderboard/test/index.js @@ -103,7 +103,7 @@ describe( 'Leaderboard', () => { ); const leaderboard = leaderboardWrapper.root.findByType( Leaderboard ); - const endpoint = NAMESPACE + 'reports/products'; + const endpoint = NAMESPACE + '/reports/products'; const query = { orderby: 'items_sold', per_page: 5, extended_info: 1 }; expect( getReportStatsMock.mock.calls[ 0 ][ 1 ] ).toBe( endpoint ); diff --git a/plugins/woocommerce-admin/client/analytics/report/customers/config.js b/plugins/woocommerce-admin/client/analytics/report/customers/config.js index bdcd9827930..fe8bdc82b42 100644 --- a/plugins/woocommerce-admin/client/analytics/report/customers/config.js +++ b/plugins/woocommerce-admin/client/analytics/report/customers/config.js @@ -57,7 +57,7 @@ export const advancedFilters = { input: { component: 'Search', type: 'customers', - getLabels: getRequestByIdString( NAMESPACE + 'customers', customer => ( { + getLabels: getRequestByIdString( NAMESPACE + '/customers', customer => ( { id: customer.id, label: [ customer.first_name, customer.last_name ].filter( Boolean ).join( ' ' ), } ) ), @@ -157,7 +157,7 @@ export const advancedFilters = { input: { component: 'Search', type: 'emails', - getLabels: getRequestByIdString( NAMESPACE + 'customers', customer => ( { + getLabels: getRequestByIdString( NAMESPACE + '/customers', customer => ( { id: customer.id, label: customer.email, } ) ), diff --git a/plugins/woocommerce-admin/client/analytics/report/taxes/config.js b/plugins/woocommerce-admin/client/analytics/report/taxes/config.js index 4eaf222afae..b9a978a6179 100644 --- a/plugins/woocommerce-admin/client/analytics/report/taxes/config.js +++ b/plugins/woocommerce-admin/client/analytics/report/taxes/config.js @@ -49,7 +49,7 @@ export const filters = [ settings: { type: 'taxes', param: 'taxes', - getLabels: getRequestByIdString( NAMESPACE + 'taxes', tax => ( { + getLabels: getRequestByIdString( NAMESPACE + '/taxes', tax => ( { id: tax.id, label: getTaxCode( tax ), } ) ),