Skip to content

Commit 9a91cff

Browse files
fix(overmind-graphql): fix subscription error throwing
BREAKING CHANGE: completely new effects api
1 parent 966669f commit 9a91cff

File tree

1 file changed

+2
-2
lines changed
  • packages/node_modules/overmind-graphql/src

1 file changed

+2
-2
lines changed

packages/node_modules/overmind-graphql/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,9 @@ export const graphql: <T extends Queries>(
203203
dispose: () =>
204204
withAbsintheSocket.unobserve(client, notifier, observer),
205205
});
206+
} else {
207+
throw createError('There is no ws client available for this query');
206208
}
207-
208-
throw createError('There is no ws client available for this query');
209209
}
210210

211211
subscription.dispose = () => {

0 commit comments

Comments
 (0)