Use constant and version

This commit is contained in:
Iván Ovejero 2022-05-02 10:35:28 +02:00
parent ca0f0df635
commit 81aeefa715

View file

@ -5,6 +5,7 @@ import {
START_NODE_TYPE,
WEBHOOK_NODE_TYPE,
VIEWS,
HTTP_REQUEST_NODE_TYPE,
} from '@/constants';
import {
@ -326,7 +327,7 @@ export const workflowHelpers = mixins(
const nodeParameters = NodeHelpers.getNodeParameters(nodeType.properties, node.parameters, false, false, node);
nodeData.parameters = nodeParameters !== null ? nodeParameters : {};
const fullAccess = ['n8n-nodes-base.httpRequest'].includes(node.type);
const fullAccess = node.type === HTTP_REQUEST_NODE_TYPE && node.typeVersion === 2;
// Add the node credentials if there are some set and if they should be displayed
if (node.credentials !== undefined && nodeType.credentials !== undefined) {