Skip to content

Commit

Permalink
fix: Update Restore Backups Menu Item upon closing a file
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkoelle committed May 19, 2021
1 parent 404d15e commit 0b5bcec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/menu/FileMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const buildFileMenu = (
};
const backupPaths = fs
.readdirSync(Path.join(remote.app.getPath('userData'), 'Backup'))
.filter((p) => p.includes(Path.basename(workspace)));
.filter((p) => workspace && p.includes(Path.basename(workspace)));

return {
label: 'File',
Expand Down

0 comments on commit 0b5bcec

Please sign in to comment.