From 3e7f059932b75d36b4ada1c59232cc60f3709a0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Paunovi=C4=87?= Date: Fri, 2 Aug 2024 11:58:03 +0200 Subject: [PATCH] fix(ui): debug outputs for loops handled in a better way (#4521) --- ui/src/components/executions/outputs/Wrapper.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/src/components/executions/outputs/Wrapper.vue b/ui/src/components/executions/outputs/Wrapper.vue index b371e7bcff..fd3c67921d 100644 --- a/ui/src/components/executions/outputs/Wrapper.vue +++ b/ui/src/components/executions/outputs/Wrapper.vue @@ -65,7 +65,6 @@ :input="true" :navbar="false" :model-value="computedDebugValue" - @save="onDebugExpression($event)" class="w-100" /> @@ -124,13 +123,15 @@ const debugStackTrace = ref(""); const isJSON = ref(false); const selectedTask = () => { - const filter = selected.value.length ? selected.value[0] : (cascader.value as any).menuList?.[0]?.panel?.expandingNode?.value; + const filter = selected.value.length ? selected.value[0] : (cascader.value as any).menuList?.[0]?.panel?.expandingNode?.label; const taskRunList = [...execution.value.taskRunList]; return taskRunList.find(e => e.taskId === filter); }; const onDebugExpression = (expression) => { const taskRun = selectedTask(); + if(!taskRun) return + const URL = `${apiUrl(store)}/executions/${taskRun?.executionId}/eval/${taskRun.id}`; store.$http .post(URL, expression, {headers: {"Content-type": "text/plain",}})