Skip to content

Commit 4f8f469

Browse files
committed
fixed open project if data is undefined
1 parent 4be1cd6 commit 4f8f469

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/OpenProjectComponent.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default {
2020
...mapActions(['openProject']),
2121
// opens project
2222
openJSONFile (data) {
23+
if (data === undefined) return
2324
const jsonFile = JSON.parse(fs.readFileSync(data[0], 'utf8'))
2425
// console.log('json file', jsonFile)
2526
this.openProject(jsonFile)

0 commit comments

Comments
 (0)