From 9a376b53812b2d3dc00b2f1cc9c01c88747245ec Mon Sep 17 00:00:00 2001 From: Mutasem Aldmour Date: Tue, 12 Nov 2024 17:43:36 +0100 Subject: [PATCH] type fix --- packages/editor-ui/src/components/RunData.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/editor-ui/src/components/RunData.vue b/packages/editor-ui/src/components/RunData.vue index 9935fd287e..41da5f8f3d 100644 --- a/packages/editor-ui/src/components/RunData.vue +++ b/packages/editor-ui/src/components/RunData.vue @@ -1227,17 +1227,20 @@ function onSearchClear() { document.dispatchEvent(new KeyboardEvent('keyup', { key: '/' })); } -function getExecutionLinkLabel(task: ITaskMetadata) { +function getExecutionLinkLabel(task: ITaskMetadata): string | undefined { if (task.parentExecution) { return i18n.baseText('runData.openParentExecution', { interpolate: { id: task.parentExecution.executionId }, }); } + if (task.subExecution) { return i18n.baseText('runData.openSubExecution', { interpolate: { id: task.subExecution.executionId }, }); } + + return; } defineExpose({ enterEditMode });