Skip to content

Commit 791db6a

Browse files
authored
Merge pull request #709 from meeseeksmachine/auto-backport-of-pr-692-on-0.11.x
Backport PR #692 on branch 0.11.x (check if in repo before rendering branch menu)
2 parents 52a8706 + c8d7563 commit 791db6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Toolbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export class Toolbar extends React.Component<IToolbarProps, IToolbarState> {
233233
* @returns React element
234234
*/
235235
private _renderBranchMenu(): React.ReactElement | null {
236-
if (!this.state.repository) {
236+
if (!this.props.model.pathRepository) {
237237
return null;
238238
}
239239
return (

0 commit comments

Comments
 (0)