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,6 +522,7 @@ export const nodeHelpers = defineComponent({
}
if (nodeType !== null && nodeType.subtitle !== undefined) {
try {
return workflow.expression.getSimpleParameterValue(
data as INode,
nodeType.subtitle,
@@ -531,6 +532,9 @@ export const nodeHelpers = defineComponent({
undefined,
PLACEHOLDER_FILLED_AT_EXECUTION_TIME,
) as string | undefined;
} catch (e) {
return undefined;
}
}
if (data.parameters.operation !== undefined) {