Skip to content

Commit 52e72ea

Browse files
telamoniankgryte
andauthored
Update src/components/GitPanel.tsx
Co-Authored-By: Athan <[email protected]>
1 parent e1dd060 commit 52e72ea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/GitPanel.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,10 @@ export class GitPanel extends React.Component<
201201
(this.props.settings.composite[
202202
'disableBranchWithChanges'
203203
] as boolean) &&
204-
(!!this.state.unstagedFiles || !!this.state.stagedFiles)
204+
(
205+
(this.state.unstagedFiles && this.state.unstagedFiles.length) ||
206+
(this.state.stagedFiles && this.state.stagedFiles.length)
207+
)
205208
}
206209
toggleSidebar={this.toggleSidebar}
207210
sideBarExpanded={this.state.isHistoryVisible}

0 commit comments

Comments
 (0)