Skip to content

Commit

Permalink
If you press enter when nothing is selected, the first directory will…
Browse files Browse the repository at this point in the history
… be openned
  • Loading branch information
mamodom committed Aug 29, 2017
1 parent 50131fe commit 2bc0c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let store = {};

const openSubdirectory = (index) => {
const { filteredSubdirectories, lastConsole } = store.getState();
const sub = filteredSubdirectories[index];
const sub = filteredSubdirectories[index || 0];

if (!sub) {
return;
Expand Down

0 comments on commit 2bc0c16

Please sign in to comment.