Remove unnecessary IF in reports/utils.js (https://github.com/woocommerce/woocommerce-admin/pull/909)
This commit is contained in:
parent
56d3a69d13
commit
23d032d675
|
@ -226,14 +226,13 @@ export function getReportChartData( endpoint, dataType, query, select ) {
|
||||||
isFetching = false;
|
isFetching = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if ( ! isReportStatsRequesting( endpoint, nextQuery ) ) {
|
|
||||||
pagedData.push( _data );
|
pagedData.push( _data );
|
||||||
if ( i === totalPages ) {
|
if ( i === totalPages ) {
|
||||||
isFetching = false;
|
isFetching = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if ( isFetching ) {
|
if ( isFetching ) {
|
||||||
return { ...response, isRequesting: true };
|
return { ...response, isRequesting: true };
|
||||||
|
|
Loading…
Reference in New Issue