diff --git a/apps/studio/src/components/Sidebar.tsx b/apps/studio/src/components/Sidebar.tsx index b6912b88b..f1095a2ce 100644 --- a/apps/studio/src/components/Sidebar.tsx +++ b/apps/studio/src/components/Sidebar.tsx @@ -61,10 +61,6 @@ export const Sidebar: FunctionComponent = () => { const [isV3, setIsV3] = useState(document?.version().startsWith('3.')); - if (show.activityBar === false) { - return null; - } - let navigation: NavItem[] = [ // navigation { @@ -136,6 +132,10 @@ export const Sidebar: FunctionComponent = () => { setIsV3(document?.version().startsWith('3.')); } }, [document]); + + if (show.activityBar === false) { + return null; + } return (