fix: graphql operation highlight on focus changed (#3297)

This commit is contained in:
Anwarul Islam 2023-08-28 18:25:42 +06:00 committed by GitHub
parent 4adac4af38
commit 8499ac7fec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.head
const queryString = update.state.doc.toJSON().join(update.state.lineBreak)