The gql editor reads state.body.operationName for getting operation name but it may refer to the last state, read operations[0] to get the latest ast's op name.
Ref: INS-3966, #7455
Changes:
[x] fix: always take the latest operation name instead of prev state's
Background:
The gql editor reads
state.body.operationName
for getting operation name but it may refer to the last state, readoperations[0]
to get the latest ast's op name.Ref: INS-3966, #7455
Changes: