fix(selection): clear selection after changing directory

This commit is contained in:
Mahdi Dibaiee 2015-10-23 11:23:20 +03:30
parent c13315d61e
commit 0018380759
2 changed files with 9 additions and 1 deletions

View File

@ -32012,6 +32012,10 @@ exports['default'] = function (state, action) {
return action.file;
}
if (action.type === _actionsTypes.CHANGE_DIRECTORY) {
return null;
}
return state;
};

View File

@ -1,9 +1,13 @@
import { ACTIVE_FILE } from 'actions/types';
import { ACTIVE_FILE, CHANGE_DIRECTORY } from 'actions/types';
export default function(state = null, action) {
if (action.type === ACTIVE_FILE) {
return action.file;
}
if (action.type === CHANGE_DIRECTORY) {
return null;
}
return state;
}