mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(editor): Do not throw an error when calculating dynamic inputs/outputs (no-changelog) (#8858)
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
This commit is contained in:
@@ -285,6 +285,7 @@ export class Agent implements INodeType {
|
|||||||
name: 'hasOutputParser',
|
name: 'hasOutputParser',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false,
|
default: false,
|
||||||
|
noDataExpression: true,
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
hide: {
|
hide: {
|
||||||
'@version': [{ _cnd: { lte: 1.2 } }],
|
'@version': [{ _cnd: { lte: 1.2 } }],
|
||||||
|
|||||||
@@ -343,6 +343,7 @@ export class ChainLlm implements INodeType {
|
|||||||
name: 'hasOutputParser',
|
name: 'hasOutputParser',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false,
|
default: false,
|
||||||
|
noDataExpression: true,
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
hide: {
|
hide: {
|
||||||
'@version': [1, 1.1, 1.3],
|
'@version': [1, 1.1, 1.3],
|
||||||
|
|||||||
@@ -1104,9 +1104,8 @@ export function getNodeInputs(
|
|||||||
{},
|
{},
|
||||||
) || []) as ConnectionTypes[];
|
) || []) as ConnectionTypes[];
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
throw new ApplicationError('Could not calculate inputs dynamically for node', {
|
console.warn('Could not calculate inputs dynamically for node: ', node.name);
|
||||||
extra: { nodeName: node.name },
|
return [];
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1129,9 +1128,7 @@ export function getNodeOutputs(
|
|||||||
{},
|
{},
|
||||||
) || []) as ConnectionTypes[];
|
) || []) as ConnectionTypes[];
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
throw new ApplicationError('Could not calculate outputs dynamically for node', {
|
console.warn('Could not calculate outputs dynamically for node: ', node.name);
|
||||||
extra: { nodeName: node.name },
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user