Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 36d001e

Browse files
committed
Fall back to '' instead of null for the selects' value
1 parent 4955c9b commit 36d001e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/views/git-tab-header-view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default class GitTabHeaderView extends React.Component {
3131
<header className="github-Project">
3232
{this.renderCommitter()}
3333
<select className="github-Project-path input-select"
34-
value={this.props.workdir ? path.normalize(this.props.workdir) : undefined}
34+
value={this.props.workdir || ''}
3535
onChange={this.props.handleWorkDirSelect}
3636
disabled={this.props.changingWorkDir}>
3737
{this.renderWorkDirs()}

lib/views/github-tab-header-view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default class GithubTabHeaderView extends React.Component {
2929
<header className="github-Project">
3030
{this.renderUser()}
3131
<select className="github-Project-path input-select"
32-
value={this.props.workdir}
32+
value={this.props.workdir || ''}
3333
disabled={this.props.changingWorkDir}
3434
onChange={this.props.handleWorkDirChange}>
3535
{this.renderWorkDirs()}

0 commit comments

Comments
 (0)