- {workflowIsLoading || sessionStore === null ? (
+ {workflowIsLoading || !session?.user ? (
) : (
diff --git a/src/app/workflows/WorkflowGrid.tsx b/src/app/workflows/WorkflowGrid.tsx
index ad9bece..0043151 100644
--- a/src/app/workflows/WorkflowGrid.tsx
+++ b/src/app/workflows/WorkflowGrid.tsx
@@ -583,7 +583,7 @@ export function WorkflowsGrid({ workflows }: WorkflowTableProps) {
(a, b) =>
new Date(b!.startedAt).getTime() - new Date(a!.startedAt).getTime(),
)
- .slice(0, 500);
+ .slice(0, 4);
return (
diff --git a/src/middlewares/handlers/userApi.ts b/src/middlewares/handlers/userApi.ts
index e757e79..ef5e3b6 100644
--- a/src/middlewares/handlers/userApi.ts
+++ b/src/middlewares/handlers/userApi.ts
@@ -122,15 +122,15 @@ export const withUserApi = (
const user = await getUser(request);
- if (!user && pathname.startsWith("/workflow")) {
- return NextResponse.redirect(
- new URL("/auth/login", process.env.NEXTAUTH_URL),
- );
- }
-
- if (!user) {
- return errorResponse("Not authenticated", 401);
- }
+ // if (!user && pathname.startsWith("/workflow")) {
+ // return NextResponse.redirect(
+ // new URL("/auth/login", process.env.NEXTAUTH_URL),
+ // );
+ // }
+
+ // if (!user) {
+ // return errorResponse("Not authenticated", 401);
+ // }
// user namespace check
if (pathname.startsWith("/api/user/")) {