migrate organizations from clerk to in-house
This commit is contained in:
@@ -12,7 +12,7 @@ type Props = {
|
||||
|
||||
const Connect = async ({ params: { projectId } }: Props) => {
|
||||
const orgs = await getCurrentOrganizations();
|
||||
const organizationSlug = orgs[0]?.slug;
|
||||
const organizationSlug = orgs[0]?.id;
|
||||
if (!organizationSlug) {
|
||||
throw new Error('No organization found');
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ type Props = {
|
||||
|
||||
const Verify = async ({ params: { projectId } }: Props) => {
|
||||
const orgs = await getCurrentOrganizations();
|
||||
const organizationSlug = orgs[0]?.slug;
|
||||
const organizationSlug = orgs[0]?.id;
|
||||
if (!organizationSlug) {
|
||||
throw new Error('No organization found');
|
||||
}
|
||||
|
||||
@@ -112,10 +112,10 @@ const Tracking = ({
|
||||
value={field.value}
|
||||
items={
|
||||
organizations
|
||||
.filter((item) => item.slug)
|
||||
.filter((item) => item.id)
|
||||
.map((item) => ({
|
||||
label: item.name,
|
||||
value: item.slug,
|
||||
value: item.id,
|
||||
})) ?? []
|
||||
}
|
||||
onChange={field.onChange}
|
||||
|
||||
Reference in New Issue
Block a user