From 75eea89273b854110fa6d1f96c7c1d78dd3b0731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Wed, 4 May 2022 12:39:19 +0200 Subject: [PATCH] :zap: Generalize cred component positioning --- .../editor-ui/src/components/ParameterInputList.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/editor-ui/src/components/ParameterInputList.vue b/packages/editor-ui/src/components/ParameterInputList.vue index 89d2d3b838..e874e7b092 100644 --- a/packages/editor-ui/src/components/ParameterInputList.vue +++ b/packages/editor-ui/src/components/ParameterInputList.vue @@ -134,10 +134,18 @@ export default mixins( return this.$store.getters.activeNode; }, indexToShowSlotAt (): number { - if (this.node.type === HTTP_REQUEST_NODE_TYPE && this.node.typeVersion === 2) { + // edge cases: credential with two dependencies + if ( + (this.node.type === HTTP_REQUEST_NODE_TYPE && this.node.typeVersion === 2) || + this.node.type === 'n8n-nodes-base.sentryIo' + ) { return 2; } + if (this.nodeValues.parameters.authentication !== undefined) { + return 1; + } + return 0; }, },