Skip to content

Commit 1f72388

Browse files
committed
Fix import order which was sometimes causing a TypeError
Cannot read properties of undefined (reading 'FIELD') https://stackoverflow.com/a/77275008/3217306
1 parent 7564d87 commit 1f72388

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graphql/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18+
import { SubscriptionClient } from 'subscriptions-transport-ws'
1819
import {
1920
ApolloClient,
2021
ApolloLink,
@@ -25,7 +26,6 @@ import {
2526
import { getMainDefinition } from '@apollo/client/utilities'
2627
import { WebSocketLink } from '@apollo/client/link/ws'
2728
import { setContext } from '@apollo/client/link/context'
28-
import { SubscriptionClient } from 'subscriptions-transport-ws'
2929
import { store } from '@/store/index'
3030
import { createUrl, getCylcHeaders } from '@/utils/urls'
3131

0 commit comments

Comments
 (0)