From 8499ac7fec2c42bd986e196a3fb2e12447a17095 Mon Sep 17 00:00:00 2001 From: Anwarul Islam Date: Mon, 28 Aug 2023 18:25:42 +0600 Subject: [PATCH] fix: graphql operation highlight on focus changed (#3297) --- packages/hoppscotch-common/src/components/graphql/Query.vue | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/hoppscotch-common/src/components/graphql/Query.vue b/packages/hoppscotch-common/src/components/graphql/Query.vue index 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(null) const gqlQueryString = useVModel(props, "modelValue", emit) const debouncedOnUpdateQueryState = debounce((update: ViewUpdate) => { - if (!update.selectionSet) return - const selectedPos = update.state.selection.main.head const queryString = update.state.doc.toJSON().join(update.state.lineBreak)