diff --git a/src/content-helper/common/providers/base-provider.tsx b/src/content-helper/common/providers/base-provider.tsx index 85cf93b48c..534ef86de4 100644 --- a/src/content-helper/common/providers/base-provider.tsx +++ b/src/content-helper/common/providers/base-provider.tsx @@ -138,17 +138,17 @@ export abstract class BaseProvider { * * @since 3.15.0 * - * @param {APIFetchOptions} options The options to pass to apiFetch. - * @param {string?} id The (optional) ID of the request. + * @param {APIFetchOptions} options The options to pass to apiFetch. + * @param {string?} id The (optional) ID of the request. * * @return {Promise>} The fetched data. */ - protected async fetch( options: APIFetchOptions, id?: string ): Promise { + protected async fetch( options: APIFetchOptions, id?: string ): Promise { const { abortController, abortId } = this.getOrCreateController( id ); options.signal = abortController.signal; try { - const response = await apiFetch>( options as APIFetchOptions ); + const response = await apiFetch>( options ); // Validate API side errors. if ( response.error ) {