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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -522,15 +522,19 @@ export const nodeHelpers = defineComponent({
}
if (nodeType !== null && nodeType.subtitle !== undefined) {
return workflow.expression.getSimpleParameterValue(
data as INode,
nodeType.subtitle,
'internal',
this.rootStore.timezone,
{},
undefined,
PLACEHOLDER_FILLED_AT_EXECUTION_TIME,
) as string | undefined;
try {
return workflow.expression.getSimpleParameterValue(
data as INode,
nodeType.subtitle,
'internal',
this.rootStore.timezone,
{},
undefined,
PLACEHOLDER_FILLED_AT_EXECUTION_TIME,
) as string | undefined;
} catch (e) {
return undefined;
}
}
if (data.parameters.operation !== undefined) {