handle null paths

This commit is contained in:
Mathias Rasmussen
2019-09-18 19:41:26 +02:00
parent 2a679dd6e8
commit d15f40b22d

View File

@@ -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)