handle null paths
This commit is contained in:
parent
2a679dd6e8
commit
d15f40b22d
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ class PathSelector extends React.Component {
|
|||
|
||||
handleClick () {
|
||||
const opts = Object.assign({
|
||||
defaultPath: this.props.value && path.dirname(this.props.value),
|
||||
defaultPath: path.dirname(this.props.value || ''),
|
||||
properties: ['openFile', 'openDirectory']
|
||||
}, this.props.dialog)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue