Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix: graphql operation highlight on focus changed (#3297)
Anwarul Islam8499ac7fec2c
diff --git a/packages/hoppscotch-common/src/components/graphql/Query.vue b/packages/hoppscotch-common/src/components/graphql/Query.vueindex 0301120bd..db724cd36 100644--- a/packages/hoppscotch-common/src/components/graphql/Query.vue+++ b/packages/hoppscotch-common/src/components/graphql/Query.vue@@ -144,8 +144,6 @@ const selectedOperation = ref<gql.OperationDefinitionNode | null>(null)const gqlQueryString = useVModel(props, "modelValue", emit)const debouncedOnUpdateQueryState = debounce((update: ViewUpdate) => {- if (!update.selectionSet) return-const selectedPos = update.state.selection.main.headconst queryString = update.state.doc.toJSON().join(update.state.lineBreak)