Skip to content

Commit

Permalink
close all drawer on preview
Browse files Browse the repository at this point in the history
  • Loading branch information
meneman committed Sep 6, 2023
1 parent 9dd65ec commit c1de05d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/forms-designer/MainLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const MainLayout: FunctionComponent<Props> = ({ appBar, children, additio
<Drawer
variant="persistent"
anchor="right"
open={Boolean(selectedPath)}
open={Boolean(Boolean(selectedPath) && !previewModus)}
sx={{
width: drawerWidth,
flexShrink: 0,
Expand Down

0 comments on commit c1de05d

Please sign in to comment.