fix(n8n Form Node): Completion page display if EXECUTIONS_DATA_SAVE_ON_SUCCESS=none (#11869)

This commit is contained in:
Michael Kret
2024-12-11 13:52:40 +02:00
committed by GitHub
parent ec54333f78
commit f4c2523419
7 changed files with 38 additions and 7 deletions

View File

@@ -79,7 +79,7 @@ describe('NodeExecutionContext', () => {
const result = testContext.getChildNodes('Test Node');
expect(result).toEqual([
expect(result).toMatchObject([
{ name: 'Child Node 1', type: 'testType1', typeVersion: 1 },
{ name: 'Child Node 2', type: 'testType2', typeVersion: 2 },
]);
@@ -98,7 +98,7 @@ describe('NodeExecutionContext', () => {
const result = testContext.getParentNodes('Test Node');
expect(result).toEqual([
expect(result).toMatchObject([
{ name: 'Parent Node 1', type: 'testType1', typeVersion: 1 },
{ name: 'Parent Node 2', type: 'testType2', typeVersion: 2 },
]);

View File

@@ -86,6 +86,7 @@ export abstract class NodeExecutionContext implements Omit<FunctionsBase, 'getCr
name: node.name,
type: node.type,
typeVersion: node.typeVersion,
disabled: node.disabled ?? false,
});
}
return output;
@@ -101,6 +102,7 @@ export abstract class NodeExecutionContext implements Omit<FunctionsBase, 'getCr
name: node.name,
type: node.type,
typeVersion: node.typeVersion,
disabled: node.disabled ?? false,
});
}
return output;