Handle null paths in path selector (#1704)

Handle null paths in path selector
This commit is contained in:
Feross Aboukhadijeh
2019-09-18 11:22:33 -07:00
committed by GitHub

View File

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