Handle null paths in path selector (#1704)
Handle null paths in path selector
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user