mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(Respond to Webhook Node)!: Surround HTML in iframe (#16978)
Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com>
This commit is contained in:
20
packages/nodes-base/nodes/RespondToWebhook/utils/outputs.ts
Normal file
20
packages/nodes-base/nodes/RespondToWebhook/utils/outputs.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
export const configuredOutputs = (
|
||||
version: number,
|
||||
parameters: { enableResponseOutput?: boolean },
|
||||
) => {
|
||||
const multipleOutputs = version === 1.3 || (version >= 1.4 && parameters.enableResponseOutput);
|
||||
if (multipleOutputs) {
|
||||
return [
|
||||
{
|
||||
type: 'main',
|
||||
displayName: 'Input Data',
|
||||
},
|
||||
{
|
||||
type: 'main',
|
||||
displayName: 'Response',
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
return ['main'];
|
||||
};
|
||||
Reference in New Issue
Block a user