fix(source-control): hide commit input when there are no uncommitted changes (#1448)

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Jinjing
2026-05-05 12:23:26 -07:00
committed by GitHub
co-authored by Orca
parent 2b83dcb85d
commit 2f79017d18
@@ -1137,7 +1137,7 @@ function SourceControlInner(): React.JSX.Element {
/>
)}
{(scope === 'all' || scope === 'uncommitted') && (
{(scope === 'all' || scope === 'uncommitted') && hasUncommittedEntries && (
<CommitArea
stagedCount={grouped.staged.length}
hasUnresolvedConflicts={unresolvedConflicts.length > 0}