Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

fix: sidebar open at first

Marc Seitz6d8a7368c4ac
diff --git a/components/layouts/app.tsx b/components/layouts/app.tsx
index 635f7325..1895d702 100644
--- a/components/layouts/app.tsx
+++ b/components/layouts/app.tsx
@@ -16,7 +16,8 @@ import { BlockingModal } from "./blocking-modal";
export default function AppLayout({ children }: { children: React.ReactNode }) {
// Default to open (true) if no cookie exists, otherwise use the stored preference
const cookieValue = Cookies.get(SIDEBAR_COOKIE_NAME);
- const isSidebarOpen = cookieValue === undefined ? true : cookieValue === "true";
+ const isSidebarOpen =
+ cookieValue === undefined ? true : cookieValue === "true";
return (
<SidebarProvider defaultOpen={isSidebarOpen}>