fix: Handle subtitle errors when pasting workflow (#6826)

This commit is contained in:
Mutasem Aldmour
2023-08-01 17:15:43 +02:00
committed by GitHub
parent 88156deb5c
commit 31a4cfc969

View File

@@ -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) {