Skip to content

Commit 7247710

Browse files
authored
Merge pull request #790 from trycompai/codex/fix-organization-dropdown-search-issue
Fix organization dropdown search
2 parents 5880479 + 88a8b71 commit 7247710

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

apps/app/src/components/organization-switcher.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -252,13 +252,13 @@ export function OrganizationSwitcher({
252252
{t("common.table.no_results")}
253253
</CommandEmpty>
254254
<CommandGroup className="max-h-[300px] overflow-y-auto">
255-
{organizations.map((org) => (
256-
<CommandItem
257-
key={org.id}
258-
value={org.id}
259-
onSelect={() => {
260-
if (
261-
org.id !==
255+
{organizations.map((org) => (
256+
<CommandItem
257+
key={org.id}
258+
value={getDisplayName(org) || org.id}
259+
onSelect={() => {
260+
if (
261+
org.id !==
262262
currentOrganization?.id
263263
) {
264264
handleOrgChange(org);

0 commit comments

Comments
 (0)