From c4043319187b92e09650ec5582ef1e4025d4a091 Mon Sep 17 00:00:00 2001 From: Bailey Taylor Date: Thu, 9 Oct 2025 13:39:01 +0800 Subject: [PATCH] Changes to DeviceManagementPage section. --- src/app/(protected)/admin/devices/page.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/(protected)/admin/devices/page.tsx b/src/app/(protected)/admin/devices/page.tsx index f38ee61..d343b93 100644 --- a/src/app/(protected)/admin/devices/page.tsx +++ b/src/app/(protected)/admin/devices/page.tsx @@ -16,8 +16,7 @@ interface DeviceDTO { export default async function DeviceManagementPage() { const user = await requireAuthOrRedirect(); - const cookieStore = cookies(); - // @ts-expect-error cookies() isn't really async + const cookieStore = await cookies(); const token = cookieStore.get('authToken')?.value; const res = await axiosServer.get('/admin/devices', {