mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
Fix [object Object] issue in interface
This commit is contained in:
@@ -92,7 +92,7 @@ export class GraphQL implements INodeType {
|
||||
displayName: 'Variables',
|
||||
name: 'variables',
|
||||
type: 'json',
|
||||
default: {},
|
||||
default: '',
|
||||
description: 'Query variables',
|
||||
displayOptions: {
|
||||
show: {
|
||||
@@ -194,7 +194,11 @@ export class GraphQL implements INodeType {
|
||||
operationName: this.getNodeParameter('operationName', itemIndex, null) as string,
|
||||
};
|
||||
if (typeof requestOptions.body.variables === "string") {
|
||||
requestOptions.body.variables = {};
|
||||
try {
|
||||
requestOptions.body.variables = JSON.parse(requestOptions.body.variables)
|
||||
} catch {
|
||||
requestOptions.body.variables = {};
|
||||
}
|
||||
}
|
||||
if (requestOptions.body.operationName === "") {
|
||||
requestOptions.body.operation = null;
|
||||
|
||||
Reference in New Issue
Block a user