diff options
| author | MohamedBassem <me@mbassem.com> | 2024-03-31 16:34:52 +0100 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-03-31 19:27:25 +0100 |
| commit | dc6e0eab70421749faaa9a802d66c1901f3e9b50 (patch) | |
| tree | d0f7c5623fc1ce1c11c199f794009c613d5408eb /apps/web/app/dashboard/lists | |
| parent | c0e2bdc01366f4a8878ffb373527d786e163a19b (diff) | |
| download | karakeep-dc6e0eab70421749faaa9a802d66c1901f3e9b50.tar.zst | |
feature: Add support deleting tags
Diffstat (limited to 'apps/web/app/dashboard/lists')
| -rw-r--r-- | apps/web/app/dashboard/lists/[listId]/page.tsx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/web/app/dashboard/lists/[listId]/page.tsx b/apps/web/app/dashboard/lists/[listId]/page.tsx index e27e1841..4d7df133 100644 --- a/apps/web/app/dashboard/lists/[listId]/page.tsx +++ b/apps/web/app/dashboard/lists/[listId]/page.tsx @@ -1,9 +1,8 @@ -import { notFound, redirect } from "next/navigation"; +import { notFound } from "next/navigation"; import Bookmarks from "@/components/dashboard/bookmarks/Bookmarks"; import DeleteListButton from "@/components/dashboard/lists/DeleteListButton"; import { BookmarkListContextProvider } from "@/lib/hooks/list-context"; import { api } from "@/server/api/client"; -import { getServerAuthSession } from "@/server/auth"; import { TRPCError } from "@trpc/server"; export default async function ListPage({ @@ -11,11 +10,6 @@ export default async function ListPage({ }: { params: { listId: string }; }) { - const session = await getServerAuthSession(); - if (!session) { - redirect("/"); - } - let list; try { list = await api.lists.get({ listId: params.listId }); |
