From 98cbfcabfac814c9691cef17c878be5071046086 Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Sun, 29 Mar 2026 09:56:46 -0700 Subject: [PATCH] fix: hide branch empty state on Uncommitted tab to avoid duplicate (#195) The generic "No changes on this branch" empty state was showing on both tabs. Scope it to the All tab so only "No uncommitted changes" shows on the Uncommitted tab. --- src/renderer/src/components/right-sidebar/SourceControl.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/components/right-sidebar/SourceControl.tsx b/src/renderer/src/components/right-sidebar/SourceControl.tsx index 0ac4a213a..d3017b692 100644 --- a/src/renderer/src/components/right-sidebar/SourceControl.tsx +++ b/src/renderer/src/components/right-sidebar/SourceControl.tsx @@ -381,7 +381,7 @@ export default function SourceControl(): React.JSX.Element { )}
- {showGenericEmptyState ? ( + {scope === 'all' && showGenericEmptyState ? (