Skip to content

Commit dd0a080

Browse files
authored
Merge pull request #3875 from Parsely/copilot/sub-pr-3857
2 parents b84bc07 + cba3dfd commit dd0a080

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/content-helper/common/providers/base-provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export abstract class BaseProvider {
148148
options.signal = abortController.signal;
149149

150150
try {
151-
const response = await apiFetch<ContentHelperAPIResponse<T>>( options );
151+
const response = await apiFetch<ContentHelperAPIResponse<T>>( options as APIFetchOptions<true> );
152152

153153
// Validate API side errors.
154154
if ( response.error ) {

src/content-helper/common/providers/base-wordpress-provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export abstract class BaseWordPressProvider extends BaseProvider {
151151

152152
try {
153153
// Fetch the raw Response object.
154-
const response = ( await apiFetch( options ) ) as Response;
154+
const response = await apiFetch( options as APIFetchOptions<false> ) as Response;
155155

156156
// Access headers from the response.
157157
const totalItemsHeader = response.headers.get( 'X-WP-Total' );

0 commit comments

Comments
 (0)