Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(branching): allow gitless branches to be set as peristent (#36794)

Andrew Valleteau46d3de728ff7
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 = ({
</TooltipContent>
)}
</Tooltip>
-
- {branch.git_branch && (
- <Tooltip>
- <TooltipTrigger asChild={isBranchActiveHealthy} className="w-full">
- <DropdownMenuItem
- className="gap-x-2"
- onSelect={() => setShowBranchModeSwitch(true)}
- onClick={() => setShowBranchModeSwitch(true)}
- disabled={!isBranchActiveHealthy}
- >
- {branch.persistent ? (
- <>
- <Clock size={14} /> Switch to ephemeral
- </>
- ) : (
- <>
- <Infinity size={14} className="scale-110" /> Switch to persistent
- </>
- )}
- </DropdownMenuItem>
- </TooltipTrigger>
- {!isBranchActiveHealthy && (
- <TooltipContent side="left">
- Branch is still initializing. Please wait for the branch to become healthy
- before switching modes
- </TooltipContent>
- )}
- </Tooltip>
- )}
-
+ <Tooltip>
+ <TooltipTrigger asChild={isBranchActiveHealthy} className="w-full">
+ <DropdownMenuItem
+ className="gap-x-2"
+ onSelect={() => setShowBranchModeSwitch(true)}
+ onClick={() => setShowBranchModeSwitch(true)}
+ disabled={!isBranchActiveHealthy}
+ >
+ {branch.persistent ? (
+ <>
+ <Clock size={14} /> Switch to ephemeral
+ </>
+ ) : (
+ <>
+ <Infinity size={14} className="scale-110" /> Switch to persistent
+ </>
+ )}
+ </DropdownMenuItem>
+ </TooltipTrigger>
+ {!isBranchActiveHealthy && (
+ <TooltipContent side="left">
+ Branch is still initializing. Please wait for the branch to become healthy
+ before switching modes
+ </TooltipContent>
+ )}
+ </Tooltip>
{gitlessBranching && (
<Tooltip>
<TooltipTrigger