diff --git a/plugins/woocommerce-admin/client/wc-api/reports/utils.js b/plugins/woocommerce-admin/client/wc-api/reports/utils.js index 213f4b054a4..738395a9433 100644 --- a/plugins/woocommerce-admin/client/wc-api/reports/utils.js +++ b/plugins/woocommerce-admin/client/wc-api/reports/utils.js @@ -342,11 +342,13 @@ export function getReportTableQuery( options ) { const filterQuery = getFilterQuery( options ); const datesFromQuery = getCurrentDates( query ); + const noIntervals = includes( noIntervalEndpoints, options.endpoint ); + return { orderby: query.orderby || 'date', order: query.order || 'desc', - after: appendTimestamp( datesFromQuery.primary.after, 'start' ), - before: appendTimestamp( datesFromQuery.primary.before, 'end' ), + after: noIntervals ? undefined : appendTimestamp( datesFromQuery.primary.after, 'start' ), + before: noIntervals ? undefined : appendTimestamp( datesFromQuery.primary.before, 'end' ), page: query.page || 1, per_page: query.per_page || QUERY_DEFAULTS.pageSize, ...filterQuery,