Skip to content

Commit

Permalink
fix: upload issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Mar 21, 2018
1 parent e93875b commit 3ded93e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/controls/utils/upload-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export default function uploadFiles (opts) {
dec()
send('files-updated')
}).catch((e) => {
dec()
debug(e.stack)
})
}
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ function onStartDaemon (node) {
if (fs.existsSync(lockPath)) {
try {
fs.unlinkSync(lockPath)
fs.unlinkSync(join(config.settingsStore.get('ipfsPath'), 'api'))
} catch (e) {
debug('Could not remove lock. Daemon might be running.')
}
Expand Down
2 changes: 1 addition & 1 deletion src/panes/Files.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const fileTarget = {
filesArray.push(files[i].path)
}

ipcRenderer.send('drop-files', filesArray, component.state.root)
ipcRenderer.send('drop-files', filesArray, component.props.root)
}
}

Expand Down

0 comments on commit 3ded93e

Please sign in to comment.