Skip to content

Commit

Permalink
Revert "fix: added search for node labels (FlowiseAI#3348)"
Browse files Browse the repository at this point in the history
This reverts commit 6c35419.
  • Loading branch information
noumanjavaid96 authored Oct 14, 2024
1 parent 6c35419 commit 17e30b8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/ui/src/views/canvas/AddNodes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,17 @@ const AddNodes = ({ nodesData, node, isAgentCanvas }) => {
const nodes = nodesData.filter((nd) => !blacklistCategoriesForAgentCanvas.includes(nd.category))
nodes.push(...addException())
const passed = nodes.filter((nd) => {
const passesName = nd.name.toLowerCase().includes(value.toLowerCase())
const passesLabel = nd.label.toLowerCase().includes(value.toLowerCase())
const passesQuery = nd.name.toLowerCase().includes(value.toLowerCase())
const passesCategory = nd.category.toLowerCase().includes(value.toLowerCase())
return passesName || passesCategory || passesLabel
return passesQuery || passesCategory
})
return passed
}
const nodes = nodesData.filter((nd) => nd.category !== 'Multi Agents' && nd.category !== 'Sequential Agents')
const passed = nodes.filter((nd) => {
const passesName = nd.name.toLowerCase().includes(value.toLowerCase())
const passesLabel = nd.label.toLowerCase().includes(value.toLowerCase())
const passesQuery = nd.name.toLowerCase().includes(value.toLowerCase())
const passesCategory = nd.category.toLowerCase().includes(value.toLowerCase())
return passesName || passesCategory || passesLabel
return passesQuery || passesCategory
})
return passed
}
Expand Down

0 comments on commit 17e30b8

Please sign in to comment.