fix(selection): clear selection after changing directory
This commit is contained in:
parent
c13315d61e
commit
0018380759
@ -32012,6 +32012,10 @@ exports['default'] = function (state, action) {
|
|||||||
return action.file;
|
return action.file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (action.type === _actionsTypes.CHANGE_DIRECTORY) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return state;
|
return state;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
import { ACTIVE_FILE } from 'actions/types';
|
import { ACTIVE_FILE, CHANGE_DIRECTORY } from 'actions/types';
|
||||||
|
|
||||||
export default function(state = null, action) {
|
export default function(state = null, action) {
|
||||||
if (action.type === ACTIVE_FILE) {
|
if (action.type === ACTIVE_FILE) {
|
||||||
return action.file;
|
return action.file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (action.type === CHANGE_DIRECTORY) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user