fix some bugs with the org selector
This commit is contained in:
parent
c92ab6d41c
commit
4e02e75d7f
@ -114,6 +114,7 @@ const OrganizationSelector = (): ReactElement => {
|
|||||||
(organization: Organization, index: number) => (
|
(organization: Organization, index: number) => (
|
||||||
<CommandItem
|
<CommandItem
|
||||||
key={index}
|
key={index}
|
||||||
|
className="flex justify-between"
|
||||||
value={organization.name}
|
value={organization.name}
|
||||||
onSelect={(currentValue: string) =>
|
onSelect={(currentValue: string) =>
|
||||||
selectOrganization(
|
selectOrganization(
|
||||||
@ -125,11 +126,11 @@ const OrganizationSelector = (): ReactElement => {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{selected?.snowflake ===
|
{organization.name}
|
||||||
|
{organization.snowflake ===
|
||||||
selectedOrganization && (
|
selectedOrganization && (
|
||||||
<CheckIcon className="mr-2 w-4 h-4" />
|
<CheckIcon className="mr-2 w-4 h-4" />
|
||||||
)}
|
)}
|
||||||
{organization.name}
|
|
||||||
</CommandItem>
|
</CommandItem>
|
||||||
)
|
)
|
||||||
)}
|
)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user