update iconnection type to match workflows

This commit is contained in:
Mutasem 2022-05-23 08:55:56 +02:00
parent d4b1f908dd
commit 3772487d98
2 changed files with 2 additions and 2 deletions

View file

@ -303,7 +303,7 @@ export interface ICredentialDataDecryptedObject {
// First array index: The output/input-index (if node has multiple inputs/outputs of the same type)
// Second array index: The different connections (if one node is connected to multiple nodes)
export type NodeInputConnections = IConnection[][];
export type NodeInputConnections = (IConnection[] | null)[];
export interface INodeConnections {
// Input name

View file

@ -1487,7 +1487,7 @@ describe('Workflow', () => {
index: 0,
},
],
[], // todo why is null not accepted
null,
[
{
node: 'Switch',