diff --git a/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx b/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx index 258abac83f3..d6ccd437974 100644 --- a/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx +++ b/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx @@ -293,36 +293,32 @@ export const BranchRow = ({ )} - - {branch.git_branch && ( - - - setShowBranchModeSwitch(true)} - onClick={() => setShowBranchModeSwitch(true)} - disabled={!isBranchActiveHealthy} - > - {branch.persistent ? ( - <> - Switch to ephemeral - - ) : ( - <> - Switch to persistent - - )} - - - {!isBranchActiveHealthy && ( - - Branch is still initializing. Please wait for the branch to become healthy - before switching modes - - )} - - )} - + + + setShowBranchModeSwitch(true)} + onClick={() => setShowBranchModeSwitch(true)} + disabled={!isBranchActiveHealthy} + > + {branch.persistent ? ( + <> + Switch to ephemeral + + ) : ( + <> + Switch to persistent + + )} + + + {!isBranchActiveHealthy && ( + + Branch is still initializing. Please wait for the branch to become healthy + before switching modes + + )} + {gitlessBranching && (