mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
fix: Issue with incorrect OperationName applied on GraphQL request (#6074)
* fix: Retained operation name in GraphQL requests * fix: Ensure Immediate Reflection of operationName Changes in GraphQL Query
This commit is contained in:
parent
fe63357a93
commit
7b416220af
@ -291,7 +291,11 @@ export const GraphQLEditor: FC<Props> = ({
|
||||
}
|
||||
}
|
||||
|
||||
const content = getGraphQLContent(state.body, query);
|
||||
if (!operationName) {
|
||||
delete state.body.operationName;
|
||||
}
|
||||
|
||||
const content = getGraphQLContent(state.body, query, operationName);
|
||||
onChange(content);
|
||||
|
||||
setState(state => ({
|
||||
|
Loading…
Reference in New Issue
Block a user