Skip to content

Commit

Permalink
Fix test against null (empty string is valid) (#991)
Browse files Browse the repository at this point in the history
Fixes #989
  • Loading branch information
fcollonval authored Aug 3, 2021
1 parent 80da905 commit 96bef45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export class Toolbar extends React.Component<IToolbarProps, IToolbarState> {
* @returns React element
*/
private _renderBranchMenu(): React.ReactElement | null {
if (!this.props.model.pathRepository) {
if (this.props.model.pathRepository === null) {
return null;
}
return (
Expand Down

0 comments on commit 96bef45

Please sign in to comment.