From e02c156d75ac4baabe895b6bdc6decccda100e64 Mon Sep 17 00:00:00 2001 From: waleed Date: Tue, 27 Jan 2026 23:44:34 -0800 Subject: [PATCH] chore: remove comments --- apps/sim/stores/modals/search/store.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/apps/sim/stores/modals/search/store.ts b/apps/sim/stores/modals/search/store.ts index f52fc66a5..92ecad70f 100644 --- a/apps/sim/stores/modals/search/store.ts +++ b/apps/sim/stores/modals/search/store.ts @@ -39,11 +39,9 @@ export const useSearchModalStore = create((set, get) => ({ initializeData: (filterBlocks) => { if (get().data.isInitialized) return - // Cache getAllBlocks result to avoid redundant calls const allBlocks = getAllBlocks() const filteredAllBlocks = filterBlocks(allBlocks) as typeof allBlocks - // Process blocks, tools, triggers, and docs in a single pass const regularBlocks: SearchBlockItem[] = [] const tools: SearchBlockItem[] = [] const docs: SearchDocItem[] = [] @@ -97,7 +95,6 @@ export const useSearchModalStore = create((set, get) => ({ const blocks = [...regularBlocks, ...(filterBlocks(specialBlocks) as SearchBlockItem[])] - // getTriggersForSidebar filters from allBlocks internally, pass allBlocks to avoid re-fetch const allTriggers = getTriggersForSidebar() const filteredTriggers = filterBlocks(allTriggers) as typeof allTriggers const priorityOrder = ['Start', 'Schedule', 'Webhook']