mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
fix: Handle subtitle errors when pasting workflow (#6826)
This commit is contained in:
parent
88156deb5c
commit
31a4cfc969
|
@ -522,15 +522,19 @@ export const nodeHelpers = defineComponent({
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nodeType !== null && nodeType.subtitle !== undefined) {
|
if (nodeType !== null && nodeType.subtitle !== undefined) {
|
||||||
return workflow.expression.getSimpleParameterValue(
|
try {
|
||||||
data as INode,
|
return workflow.expression.getSimpleParameterValue(
|
||||||
nodeType.subtitle,
|
data as INode,
|
||||||
'internal',
|
nodeType.subtitle,
|
||||||
this.rootStore.timezone,
|
'internal',
|
||||||
{},
|
this.rootStore.timezone,
|
||||||
undefined,
|
{},
|
||||||
PLACEHOLDER_FILLED_AT_EXECUTION_TIME,
|
undefined,
|
||||||
) as string | undefined;
|
PLACEHOLDER_FILLED_AT_EXECUTION_TIME,
|
||||||
|
) as string | undefined;
|
||||||
|
} catch (e) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.parameters.operation !== undefined) {
|
if (data.parameters.operation !== undefined) {
|
||||||
|
|
Loading…
Reference in a new issue