Skip to content

Open source alternative to Semrush and Ahrefs

Keep all projects visible after switching projects (EVE-388) (#856)

Ben Senescuc05ca70ce2c7
diff --git a/src/client/features/projects/ProjectSwitcher.tsx b/src/client/features/projects/ProjectSwitcher.tsx
index ee9d340c..abe087df 100644
--- a/src/client/features/projects/ProjectSwitcher.tsx
+++ b/src/client/features/projects/ProjectSwitcher.tsx
@@ -99,7 +99,7 @@ export function ProjectSwitcher({
value={activeProject}
itemToStringLabel={(project) => project.name}
isItemEqualToValue={(project, value) => project.id === value.id}
- filter={matchesProject}
+ filter={projects.length >= SEARCH_THRESHOLD ? matchesProject : null}
autoHighlight
open={open}
onOpenChange={setOpen}