Remove defunct todo comment about swagger hub endpoint pagination headers.
This commit is contained in:
parent
d0066f0a60
commit
a8247e8e7e
|
@ -53,7 +53,6 @@ function read( resourceNames, fetch = apiFetch ) {
|
|||
try {
|
||||
const response = await fetch( fetchArgs );
|
||||
const report = await response.json();
|
||||
// TODO: exclude these if using swagger?
|
||||
const totalResults = parseInt( response.headers.get( 'x-wp-total' ) );
|
||||
const totalPages = parseInt( response.headers.get( 'x-wp-totalpages' ) );
|
||||
|
||||
|
|
|
@ -55,7 +55,6 @@ function read( resourceNames, fetch = apiFetch ) {
|
|||
try {
|
||||
const response = await fetch( fetchArgs );
|
||||
const report = await response.json();
|
||||
// TODO: exclude these if using swagger?
|
||||
const totalResults = parseInt( response.headers.get( 'x-wp-total' ) );
|
||||
const totalPages = parseInt( response.headers.get( 'x-wp-totalpages' ) );
|
||||
|
||||
|
|
Loading…
Reference in New Issue