Skip to content

Commit

Permalink
sonarcloud issues fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
catosaurusrex2003 committed Oct 4, 2024
1 parent aabca93 commit c776266
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/studio/src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ export const Sidebar: FunctionComponent<SidebarProps> = () => {

const [isV3, setIsV3] = useState(document?.version().startsWith('3.'));

if (show.activityBar === false) {
return null;
}

let navigation: NavItem[] = [
// navigation
{
Expand Down Expand Up @@ -136,6 +132,10 @@ export const Sidebar: FunctionComponent<SidebarProps> = () => {
setIsV3(document?.version().startsWith('3.'));
}
}, [document]);

if (show.activityBar === false) {
return null;
}

return (
<div className="flex flex-col bg-gray-800 shadow-lg border-r border-gray-700 justify-between" id="sidebar">
Expand Down

0 comments on commit c776266

Please sign in to comment.