mirror of
https://github.com/soconnor0919/hristudio.git
synced 2026-02-05 07:56:30 -05:00
chore: clean diagnostics and prepare for designer structural refactor (stub legacy useActiveStudy)
This commit is contained in:
@@ -35,8 +35,12 @@ export default async function DashboardLayout({
|
||||
const cookieStore = await cookies();
|
||||
const defaultOpen = cookieStore.get("sidebar_state")?.value === "true";
|
||||
|
||||
// Pre-seed selected study from cookie (SSR) to avoid client flash
|
||||
const selectedStudyCookie =
|
||||
cookieStore.get("hristudio_selected_study")?.value ?? null;
|
||||
|
||||
return (
|
||||
<StudyProvider>
|
||||
<StudyProvider initialStudyId={selectedStudyCookie}>
|
||||
<BreadcrumbProvider>
|
||||
<SidebarProvider defaultOpen={defaultOpen}>
|
||||
<AppSidebar userRole={userRole} />
|
||||
|
||||
Reference in New Issue
Block a user