Fix autocompleters in customers and taxes report (https://github.com/woocommerce/woocommerce-admin/pull/1458)

This commit is contained in:
Albert Juhé Lluveras 2019-02-04 09:51:29 +01:00 committed by GitHub
parent fb0d71f117
commit 9dd4c10d7d
3 changed files with 4 additions and 4 deletions

View File

@ -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 );

View File

@ -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,
} ) ),

View File

@ -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 ),
} ) ),