MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / filterSearch

Function filterSearch

packages/ui/src/views/canvas/AddNodes.jsx:235–247  ·  view source on GitHub ↗
(value, newTabValue)

Source from the content-addressed store, hash-verified

233 }
234
235 const filterSearch = (value, newTabValue) => {
236 setSearchValue(value)
237 setTimeout(() => {
238 if (value) {
239 const returnData = getSearchedNodes(value)
240 groupByCategory(returnData, newTabValue ?? tabValue, true)
241 scrollTop()
242 } else if (value === '') {
243 groupByCategory(nodesData, newTabValue ?? tabValue)
244 scrollTop()
245 }
246 }, 500)
247 }
248
249 const groupByTags = (nodes, newTabValue = 0) => {
250 const langchainNodes = nodes.filter((nd) => !nd.tags)

Callers 2

handleTabChangeFunction · 0.70
AddNodesFunction · 0.70

Calls 3

getSearchedNodesFunction · 0.85
groupByCategoryFunction · 0.85
scrollTopFunction · 0.85

Tested by

no test coverage detected