Skip to content
This repository was archived by the owner on Jan 14, 2022. It is now read-only.

Commit 4236e0c

Browse files
committed
fixed import snippet empty path bug
1 parent 2922e40 commit 4236e0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/app-menu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function getMenu (app, mainWindow) {
5353
buttonLabel: 'Import'
5454
},
5555
paths => {
56-
if (paths[0]) {
56+
if (paths && paths[0]) {
5757
const file = paths[0]
5858
mainWindow.webContents.send('snippet:import', file)
5959
}

0 commit comments

Comments
 (0)