Skip to content

Commit

Permalink
chore(@aws-amplify/api): fix non-breaking typo in function (#5034)
Browse files Browse the repository at this point in the history
  • Loading branch information
jensbodal authored Mar 3, 2020
1 parent 44b4faf commit 69d9fd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api/src/API.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ export default class APIClass {
*/
graphql(
{ query: paramQuery, variables = {}, authMode }: GraphQLOptions,
addtionalHeaders?: { [key: string]: string }
additionalHeaders?: { [key: string]: string }
) {
const query =
typeof paramQuery === 'string'
Expand All @@ -369,7 +369,7 @@ export default class APIClass {
switch (operationType) {
case 'query':
case 'mutation':
return this._graphql({ query, variables, authMode }, addtionalHeaders);
return this._graphql({ query, variables, authMode }, additionalHeaders);
case 'subscription':
return this._graphqlSubscribe({
query,
Expand Down

0 comments on commit 69d9fd4

Please sign in to comment.