fix(editor): Nodes in disabled state appear in the logs (no-changelog) (#15054)

This commit is contained in:
Suguru Inoue
2025-05-02 13:24:23 +02:00
committed by GitHub
parent 20834abb56
commit a4290dcb78
5 changed files with 43 additions and 5 deletions

View File

@@ -383,9 +383,11 @@ function findLogEntryToAutoSelectRec(
export function createLogEntries(workflow: Workflow, runData: IRunData) {
const runs = Object.entries(runData)
.filter(([nodeName]) => workflow.getChildNodes(nodeName, 'ALL_NON_MAIN').length === 0)
.flatMap(([nodeName, taskData]) =>
taskData.map((task, runIndex) => ({ nodeName, task, runIndex })),
workflow.getChildNodes(nodeName, 'ALL_NON_MAIN').length > 0 ||
workflow.getNode(nodeName)?.disabled
? [] // skip sub nodes and disabled nodes
: taskData.map((task, runIndex) => ({ nodeName, task, runIndex })),
)
.sort((a, b) => {
if (a.task.executionIndex !== undefined && b.task.executionIndex !== undefined) {