Skip to content

Commit

Permalink
fix: Merge pull request #259 from hysios/master
Browse files Browse the repository at this point in the history
i fixed in choose local directory dialog has crash in Electron 8.4.1 or above versions
  • Loading branch information
seveibar committed Aug 18, 2020
2 parents 8adecb5 + fd9d11f commit 43a0925
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/ImportPage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ export default ({
const localSamples = await promptAndGetSamplesFromLocalDirectory({
electron,
})

if (typeof localSamples === "undefined") {
return
}

onChangeDataset(
setIn(
dataset,
Expand Down

0 comments on commit 43a0925

Please sign in to comment.