diff --git a/web/components/workspace/sidebar-dropdown.tsx b/web/components/workspace/sidebar-dropdown.tsx index 69fe387c1..324d9acea 100644 --- a/web/components/workspace/sidebar-dropdown.tsx +++ b/web/components/workspace/sidebar-dropdown.tsx @@ -145,8 +145,10 @@ export const WorkspaceSidebarDropdown = observer(() => { leaveTo="transform opacity-0 scale-95" > -
- Workspace +
+ + Workspace + {workspaces ? (
{workspaces.length > 0 ? ( @@ -195,18 +197,20 @@ export const WorkspaceSidebarDropdown = observer(() => { ) : (

No workspace found!

)} - { - setTrackElement("APP_SIEDEBAR_WORKSPACE_DROPDOWN"); - router.push("/create-workspace"); - }} - className="flex w-full items-center gap-2 px-2 py-1 text-sm text-custom-sidebar-text-200 hover:bg-custom-sidebar-background-80" - > - - Create Workspace - +
+ { + setTrackElement("APP_SIEDEBAR_WORKSPACE_DROPDOWN"); + router.push("/create-workspace"); + }} + className="flex w-full items-center gap-2 px-2 py-1 text-sm text-custom-sidebar-text-200 hover:bg-custom-sidebar-background-80" + > + + Create Workspace + +
) : (