Skip to content

Commit

Permalink
fetch/remove unnecessary headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Velenir committed Nov 9, 2024
1 parent 6369f4a commit 3455fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/fetchers/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const constructFetcher =

// adding apiKey to headers if it's provided
const apiHeaders = extra?.apiKey
? { 'X-API-KEY': extra.apiKey, ...params.headers }
? { 'X-API-KEY': extra.apiKey }
: undefined;

// all headers combined
Expand Down

0 comments on commit 3455fe1

Please sign in to comment.