We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1dd060 commit 52e72eaCopy full SHA for 52e72ea
src/components/GitPanel.tsx
@@ -201,7 +201,10 @@ export class GitPanel extends React.Component<
201
(this.props.settings.composite[
202
'disableBranchWithChanges'
203
] as boolean) &&
204
- (!!this.state.unstagedFiles || !!this.state.stagedFiles)
+(
205
+ (this.state.unstagedFiles && this.state.unstagedFiles.length) ||
206
+ (this.state.stagedFiles && this.state.stagedFiles.length)
207
+)
208
}
209
toggleSidebar={this.toggleSidebar}
210
sideBarExpanded={this.state.isHistoryVisible}
0 commit comments