From 4eb215b99dc984531cdbe735b80cbed91b6c7464 Mon Sep 17 00:00:00 2001 From: Mike Sawka Date: Wed, 27 Mar 2024 15:33:00 -0700 Subject: [PATCH] disable right sidebar in production (#515) --- src/models/rightsidebar.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/models/rightsidebar.ts b/src/models/rightsidebar.ts index 17cb2a057..0a712e5c0 100644 --- a/src/models/rightsidebar.ts +++ b/src/models/rightsidebar.ts @@ -70,6 +70,10 @@ class RightSidebarModel implements SidebarModel { } getCollapsed(): boolean { + // disable right sidebar in production + if (!this.globalModel.isDev) { + return true; + } const clientData = this.globalModel.clientData.get(); const collapsed = clientData?.clientopts?.rightsidebar?.collapsed; if (this.isDragging.get()) {