disable right sidebar in production (#515)

This commit is contained in:
Mike Sawka
2024-03-27 15:33:00 -07:00
committed by GitHub
parent 404f7eaac0
commit 4eb215b99d
+4
View File
@@ -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()) {