We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5880479 + 88a8b71 commit 7247710Copy full SHA for 7247710
1 file changed
apps/app/src/components/organization-switcher.tsx
@@ -252,13 +252,13 @@ export function OrganizationSwitcher({
252
{t("common.table.no_results")}
253
</CommandEmpty>
254
<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 !==
+ {organizations.map((org) => (
+ <CommandItem
+ key={org.id}
+ value={getDisplayName(org) || org.id}
+ onSelect={() => {
+ if (
+ org.id !==
262
currentOrganization?.id
263
) {
264
handleOrgChange(org);
0 commit comments