File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed
apps/sim/stores/modals/search Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,9 @@ export const useSearchModalStore = create<SearchModalState>((set, get) => ({
3939 initializeData : ( filterBlocks ) => {
4040 if ( get ( ) . data . isInitialized ) return
4141
42- // Cache getAllBlocks result to avoid redundant calls
4342 const allBlocks = getAllBlocks ( )
4443 const filteredAllBlocks = filterBlocks ( allBlocks ) as typeof allBlocks
4544
46- // Process blocks, tools, triggers, and docs in a single pass
4745 const regularBlocks : SearchBlockItem [ ] = [ ]
4846 const tools : SearchBlockItem [ ] = [ ]
4947 const docs : SearchDocItem [ ] = [ ]
@@ -97,7 +95,6 @@ export const useSearchModalStore = create<SearchModalState>((set, get) => ({
9795
9896 const blocks = [ ...regularBlocks , ...( filterBlocks ( specialBlocks ) as SearchBlockItem [ ] ) ]
9997
100- // getTriggersForSidebar filters from allBlocks internally, pass allBlocks to avoid re-fetch
10198 const allTriggers = getTriggersForSidebar ( )
10299 const filteredTriggers = filterBlocks ( allTriggers ) as typeof allTriggers
103100 const priorityOrder = [ 'Start' , 'Schedule' , 'Webhook' ]
You can’t perform that action at this time.
0 commit comments