fix(web): workflow org visibility issues
This commit is contained in:
@@ -18,6 +18,7 @@ import {
|
||||
import { getRelativeTime } from "@/lib/getRelativeTime";
|
||||
import { getMachines } from "@/server/curdMachine";
|
||||
import { findFirstTableWithVersion } from "@/server/findFirstTableWithVersion";
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export default async function Page({
|
||||
params,
|
||||
|
||||
@@ -15,8 +15,8 @@ export default async function Layout({
|
||||
{workflow}
|
||||
{deployment}
|
||||
</div>
|
||||
|
||||
{runs}
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
import { findWorkflowById } from "@/server/findFirstTableWithVersion";
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export default async function Page({
|
||||
params,
|
||||
}: {
|
||||
params: { workflow_id: string };
|
||||
}) {
|
||||
const workflow = await findWorkflowById(params.workflow_id);
|
||||
if (!workflow) redirect("/workflows");
|
||||
|
||||
return <></>;
|
||||
}
|
||||
Reference in New Issue
Block a user