Skip to content

Commit 0ba4db2

Browse files
authored
fix: [Shared Tools] Shared workflow tools can reference themselves. (#5025)
1 parent f63d8e9 commit 0ba4db2

File tree

1 file changed

+1
-1
lines changed
  • ui/src/components/workflow-dropdown-menu/tool

1 file changed

+1
-1
lines changed

ui/src/components/workflow-dropdown-menu/tool/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ async function getToolList() {
236236
tool_type_list: [baseType, 'WORKFLOW'],
237237
})
238238
toolList.value = res.data?.tools || res.data || []
239-
toolList.value = toolList.value?.filter((item: any) => item.is_active)
239+
toolList.value = toolList.value?.filter((item: any) => item.is_active && item.id !== props.id)
240240
}
241241
242242
function folderClickHandle(row: any) {

0 commit comments

Comments
 (0)