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:
@@ -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}`}
|
||||
|
||||
Reference in New Issue
Block a user