Skip to content

Commit c836d9a

Browse files
committed
Fixed subscriptions without variables
1 parent 90e2f72 commit c836d9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/client/components/display/ResponseSubscriptionDisplay.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import { WebSocketLink } from 'apollo-link-ws';
88

99

1010
const ResponseSubscriptionDisplay = ({ content, reqResUpdate }) => {
11-
const { body, bodyVariables } = content.request;
11+
let { body, bodyVariables } = content.request;
12+
if (bodyVariables === '') bodyVariables = null
1213
const uri = /wss?:\/\//.test(content.protocol) ? content.url : content.url.replace(content.protocol, 'ws://');
1314

1415
const link = new WebSocketLink({

0 commit comments

Comments
 (0)