Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyblasczyk committed Sep 14, 2024
1 parent 3a1ab99 commit b352909
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions apps/webservice/src/app/[workspaceSlug]/SidebarCreateMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,11 @@ import { CreateReleaseDialog } from "./_components/CreateRelease";
import { CreateSystemDialog } from "./_components/CreateSystem";

export const SidebarCreateMenu: React.FC<{
workspaceId: string;
workspaceSlug: string;
workspace: Workspace;
deploymentId?: string;
systemId?: string;
}> = (props) => {
const [open, setOpen] = useState(false);
const workspace = {
id: props.workspaceId,
slug: props.workspaceSlug,
} as Workspace;
return (
<DropdownMenu open={open} onOpenChange={setOpen}>
<DropdownMenuTrigger asChild>
Expand All @@ -45,7 +40,7 @@ export const SidebarCreateMenu: React.FC<{
>
<DropdownMenuGroup>
<CreateSystemDialog
workspace={workspace}
workspace={props.workspace}
onSuccess={() => setOpen(false)}
>
<DropdownMenuItem onSelect={(e) => e.preventDefault()}>
Expand Down

0 comments on commit b352909

Please sign in to comment.