Skip to content

Commit

Permalink
update iconnection type to match workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mutdmour committed May 23, 2022
1 parent d4b1f90 commit 3772487
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/workflow/src/Interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/workflow/test/Workflow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1487,7 +1487,7 @@ describe('Workflow', () => {
index: 0,
},
],
[], // todo why is null not accepted
null,
[
{
node: 'Switch',
Expand Down

0 comments on commit 3772487

Please sign in to comment.