diff --git a/ui/src/views/trigger/component/TriggerDrawer.vue b/ui/src/views/trigger/component/TriggerDrawer.vue
index a668a71ec88..14efb5d350a 100644
--- a/ui/src/views/trigger/component/TriggerDrawer.vue
+++ b/ui/src/views/trigger/component/TriggerDrawer.vue
@@ -258,7 +258,7 @@
-
+
@@ -290,7 +290,7 @@
-
+
@@ -325,7 +325,7 @@
-
+
@@ -422,6 +422,11 @@ const applicationTask = computed(() => {
const toolTask = computed(() => {
return form.value.trigger_task.filter((task: any) => task.source_type === 'TOOL')
})
+const deleteTask = (task: any) => {
+ form.value.trigger_task = form.value.trigger_task.filter(
+ (t: any) => !(t.source_type === task.source_type && t.source_id === task.source_id),
+ )
+}
const applicationParameterRef = ref
>>()
const toolParameterRef = ref>>()
const toolRefresh = (tool_selected: any) => {