chore(root): rename organizationSlug to organizationId (#91)
This commit is contained in:
committed by
GitHub
parent
0221948aab
commit
cd16ac878d
@@ -10,8 +10,8 @@ type Props = {
|
||||
|
||||
const Connect = async ({ params: { projectId } }: Props) => {
|
||||
const orgs = await getCurrentOrganizations();
|
||||
const organizationSlug = orgs[0]?.id;
|
||||
if (!organizationSlug) {
|
||||
const organizationId = orgs[0]?.id;
|
||||
if (!organizationId) {
|
||||
throw new Error('No organization found');
|
||||
}
|
||||
const project = await getProjectWithClients(projectId);
|
||||
|
||||
@@ -72,7 +72,7 @@ const Verify = ({ project, events }: Props) => {
|
||||
<div className="flex items-center gap-8">
|
||||
{!verified && (
|
||||
<Link
|
||||
href={`/${project.organizationSlug}/${project.id}`}
|
||||
href={`/${project.organizationId}/${project.id}`}
|
||||
className=" text-muted-foreground underline"
|
||||
>
|
||||
Skip for now
|
||||
|
||||
@@ -18,8 +18,8 @@ type Props = {
|
||||
|
||||
const Verify = async ({ params: { projectId } }: Props) => {
|
||||
const orgs = await getCurrentOrganizations();
|
||||
const organizationSlug = orgs[0]?.id;
|
||||
if (!organizationSlug) {
|
||||
const organizationId = orgs[0]?.id;
|
||||
if (!organizationId) {
|
||||
throw new Error('No organization found');
|
||||
}
|
||||
const [project, events] = await Promise.all([
|
||||
|
||||
@@ -100,7 +100,7 @@ const Tracking = ({
|
||||
{organizations.length > 0 ? (
|
||||
<Controller
|
||||
control={form.control}
|
||||
name="organizationSlug"
|
||||
name="organizationId"
|
||||
render={({ field, formState }) => {
|
||||
return (
|
||||
<div>
|
||||
@@ -109,7 +109,7 @@ const Tracking = ({
|
||||
className="w-full"
|
||||
placeholder="Select workspace"
|
||||
icon={Building}
|
||||
error={formState.errors.organizationSlug?.message}
|
||||
error={formState.errors.organizationId?.message}
|
||||
value={field.value}
|
||||
items={
|
||||
organizations
|
||||
|
||||
Reference in New Issue
Block a user