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 () {
|
handleClick () {
|
||||||
const opts = Object.assign({
|
const opts = Object.assign({
|
||||||
defaultPath: this.props.value && path.dirname(this.props.value),
|
defaultPath: path.dirname(this.props.value || ''),
|
||||||
properties: ['openFile', 'openDirectory']
|
properties: ['openFile', 'openDirectory']
|
||||||
}, this.props.dialog)
|
}, this.props.dialog)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user