Skip to content

Commit e02c156

Browse files
committed
chore: remove comments
1 parent 9506fea commit e02c156

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

apps/sim/stores/modals/search/store.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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']

0 commit comments

Comments
 (0)