Skip to content

Commit

Permalink
fix buggy artifact in dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
joeizang committed Feb 17, 2025
1 parent b05df60 commit d5c4d47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@ export function Workspace() {
{selectedWorkspace ? selectedWorkspace.name === LOCALHOST ? togglerText : selectedWorkspace.name : currentWorkspace === LOCALHOST ? formatNameForReadonly('localhost') : NO_WORKSPACE}
</Dropdown.Toggle>
<Dropdown.Menu as={CustomMenu} className="w-100 custom-dropdown-items" data-id="custom-dropdown-items">
<Dropdown.Item
{currentWorkspace === LOCALHOST && <Dropdown.Item
onClick={() => {
switchWorkspace(LOCALHOST)
}}
Expand All @@ -1130,7 +1130,7 @@ export function Workspace() {
// </span>
null
)}
</Dropdown.Item>
</Dropdown.Item>}
<ShowNonLocalHostMenuItems />
{(global.fs.browser.workspaces.length <= 0 || currentWorkspace === NO_WORKSPACE) && (
<Dropdown.Item
Expand Down

0 comments on commit d5c4d47

Please sign in to comment.