diff --git a/packages/editor-ui/src/components/RunData.vue b/packages/editor-ui/src/components/RunData.vue index cd45c1c0eb..889ba9f9d6 100644 --- a/packages/editor-ui/src/components/RunData.vue +++ b/packages/editor-ui/src/components/RunData.vue @@ -513,8 +513,8 @@ const subWorkflowData = computed((): ITaskMetadata | null => { if (!node.value) { return null; } - const metadata = get(workflowRunData.value, [node.value.name, props.runIndex, 'metadata'], null); - return metadata; + + return workflowRunData.value?.[node.value.name]?.[props.runIndex]?.metadata ?? null; }); const hasReleatedExectuion = computed((): boolean => { @@ -990,7 +990,7 @@ function getRunLabel(option: number) { interpolate: { count: itemsCount }, }); - const metadata = get(workflowRunData.value, [node.value.name, props.runIndex, 'metadata'], null); + const metadata = workflowRunData.value?.[node.value.name]?.[option - 1]?.metadata ?? null; const subexecutions = metadata?.subExecutionsCount ? i18n.baseText('ndv.output.andSubExecutions', { adjustToNumber: metadata.subExecutionsCount,