Skip to content

Commit

Permalink
Fix headerListToMap transformation error
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Mar 11, 2023
1 parent 4c4ecd3 commit d7cecae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -3,7 +3,7 @@ import { IDictionary } from '../interfaces/shared';

export const headerListToMap = (headers: HeaderState): IDictionary => {
return headers.reduce((res, cur) => {
if (cur.enabled) {
if (cur.key && cur.value && cur.enabled) {
res[cur.key] = cur.value;
}

Expand Down
Expand Up @@ -23,7 +23,7 @@ export class GraphQLSSESubscriptionProvider extends SubscriptionProvider {
throw new Error('Could not create subscription client!');
}

return new Observable((subscriber) => {
return new Observable(subscriber => {
this.cleanup = this.client!.subscribe(
{
query: options.query,
Expand Down

0 comments on commit d7cecae

Please sign in to comment.