Skip to content

Commit 631a016

Browse files
committed
fix: avoid clearing selected value on every error
closes #7115
1 parent 3a8b24e commit 631a016

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/components/executions/outputs/Wrapper.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
const taskRunList = [...execution.value.taskRunList];
216216
return taskRunList.find((e) => e.taskId === filter);
217217
};
218-
const onDebugExpression = (expression) => {
218+
const onDebugExpression = (expression: string) => {
219219
const taskRun = selectedTask();
220220
221221
if (!taskRun) return;
@@ -236,7 +236,7 @@
236236
debugExpression.value = response.data.result;
237237
238238
// Parsing failed, therefore, copy raw result
239-
if (response.status === 200)
239+
if (response.status === 200 && response.data.result)
240240
selected.value.push(response.data.result);
241241
}
242242

0 commit comments

Comments
 (0)