From 33fd0fe4fe8078cba3df5f91d6d6a4969a7dec82 Mon Sep 17 00:00:00 2001 From: GuanMu Date: Thu, 17 Jul 2025 12:46:22 +0000 Subject: [PATCH] fix: Optimize node search logic, exclude specific node types --- web/app/components/workflow/operator/node-search.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web/app/components/workflow/operator/node-search.tsx b/web/app/components/workflow/operator/node-search.tsx index 94c2abc602..e889ebae36 100644 --- a/web/app/components/workflow/operator/node-search.tsx +++ b/web/app/components/workflow/operator/node-search.tsx @@ -104,7 +104,13 @@ const NodeSearch = () => { const searchableNodes = useMemo(() => { const filteredNodes = nodes.filter((node) => { - return node.id && node.data && node.type !== 'sticky' + if (!node.id || !node.data || node.type === 'sticky') return false + + const nodeData = node.data as any + const nodeType = nodeData?.type + + const internalStartNodes = ['iteration-start', 'loop-start'] + return !internalStartNodes.includes(nodeType) }) const result = filteredNodes