Kong / insomnia

The open-source, cross-platform API client for GraphQL, REST, WebSockets, SSE and gRPC. With Cloud, Local and Git storage.
https://insomnia.rest
Apache License 2.0
33.56k stars 1.87k forks source link

fix: always take the latest operation name instead of prev state's #7553

Closed ihexxa closed 1 week ago

ihexxa commented 1 week ago

Background:

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: