Skip to content

Commit 96bef45

Browse files
authored
Fix test against null (empty string is valid) (#991)
Fixes #989
1 parent 80da905 commit 96bef45

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
@@ -259,7 +259,7 @@ export class Toolbar extends React.Component<IToolbarProps, IToolbarState> {
259259
* @returns React element
260260
*/
261261
private _renderBranchMenu(): React.ReactElement | null {
262-
if (!this.props.model.pathRepository) {
262+
if (this.props.model.pathRepository === null) {
263263
return null;
264264
}
265265
return (

0 commit comments

Comments
 (0)