Skip to content

Commit

Permalink
fix: Prevent type error messages for manual executions (no-changelog) (
Browse files Browse the repository at this point in the history
…#6229)

* fix: Prevent type error messages for manual executions (no-changelog)

* Update packages/core/src/WorkflowExecute.ts

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <[email protected]>

---------

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <[email protected]>
  • Loading branch information
krynble and netroy committed May 15, 2023
1 parent 7cb8725 commit 3a36ca1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/core/src/WorkflowExecute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,11 @@ export class WorkflowExecute {
if (node && pinData && pinData[node.name]) {
incomingData.push(pinData[node.name]);
} else {
incomingData.push(
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
runData[connection.node][runIndex].data![connection.type][connection.index]!,
);
const nodeIncomingData =
runData[connection.node][runIndex]?.data?.[connection.type][connection.index];
if (nodeIncomingData) {
incomingData.push(nodeIncomingData);
}
}

incomingSourceData.main.push({
Expand Down

0 comments on commit 3a36ca1

Please sign in to comment.