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.
This commit is contained in:
Jinjing
2026-03-29 09:56:46 -07:00
committed by GitHub
parent 37de215a50
commit 98cbfcabfa
@@ -381,7 +381,7 @@ export default function SourceControl(): React.JSX.Element {
)}
<div className="flex-1 overflow-auto scrollbar-sleek py-1">
{showGenericEmptyState ? (
{scope === 'all' && showGenericEmptyState ? (
<EmptyState
heading="No changes on this branch"
supportingText={`This worktree is clean and this branch has no changes ahead of ${branchSummary.baseRef}`}