Skip to content

Commit

Permalink
fix / runs - remove redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
psiddharthdesign committed Aug 13, 2024
1 parent 9bc093b commit 5ef1504
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
} from "@/utils/zod-schemas/params";
import type { Metadata } from "next";
import dynamic from 'next/dynamic';
import { redirect } from "next/navigation";
import { ComponentType, Suspense } from "react";

export const metadata: Metadata = {
Expand Down Expand Up @@ -94,13 +93,6 @@ export default async function RunDetailPage({

const isOrganizationAdmin =
organizationRole === "admin" || organizationRole === "owner";

if (!projectsIdsForUser.includes(project_id)) {
return (
redirect(`/org/${project.organization_id}`)
)
}

return (
<div className="flex flex-col space-y-4 w-full mt-8">
<PageHeading
Expand Down

0 comments on commit 5ef1504

Please sign in to comment.