Skip to content

Commit

Permalink
fix: Loop node no input data shown (#10224)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-radency authored and despairblue committed Aug 2, 2024
1 parent d9a638a commit 2cfa75d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/editor-ui/src/composables/useNodeHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
FORM_TRIGGER_NODE_TYPE,
NODE_OUTPUT_DEFAULT_KEY,
PLACEHOLDER_FILLED_AT_EXECUTION_TIME,
SPLIT_IN_BATCHES_NODE_TYPE,
WEBHOOK_NODE_TYPE,
} from '@/constants';

Expand Down Expand Up @@ -571,6 +572,16 @@ export function useNodeHelpers() {
paneType: NodePanelType = 'output',
connectionType: ConnectionTypes = NodeConnectionType.Main,
): INodeExecutionData[] {
//TODO: check if this needs to be fixed in different place
if (
node?.type === SPLIT_IN_BATCHES_NODE_TYPE &&
paneType === 'input' &&
runIndex !== 0 &&
outputIndex !== 0
) {
runIndex = runIndex - 1;
}

if (node === null) {
return [];
}
Expand Down

0 comments on commit 2cfa75d

Please sign in to comment.