Revert "Generalize cred comp positioning"

This reverts commit 75eea89273.
This commit is contained in:
Iván Ovejero 2022-05-05 09:36:53 +02:00
parent 75eea89273
commit 2eaf05ea21

View file

@ -134,18 +134,10 @@ export default mixins(
return this.$store.getters.activeNode;
},
indexToShowSlotAt (): number {
// 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'
) {
if (this.node.type === HTTP_REQUEST_NODE_TYPE && this.node.typeVersion === 2) {
return 2;
}
if (this.nodeValues.parameters.authentication !== undefined) {
return 1;
}
return 0;
},
},