diff --git a/packages/ui/src/routes/[projectId]/components/BranchLanePopupMenu.svelte b/packages/ui/src/routes/[projectId]/components/BranchLanePopupMenu.svelte index 3e710eb1a..2ca06e503 100644 --- a/packages/ui/src/routes/[projectId]/components/BranchLanePopupMenu.svelte +++ b/packages/ui/src/routes/[projectId]/components/BranchLanePopupMenu.svelte @@ -45,7 +45,7 @@ dispatch('action', 'generate-branch-name'); visible = false; }} - disabled={!$aiGenEnabled} + disabled={!$aiGenEnabled || branch.files?.length == 0 || !branch.active} />