Skip to content

Commit a49162b

Browse files
committed
change Fix grid mode requires two clicks
1 parent 686c3e4 commit a49162b

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

src/reducers/explorerStateReducer.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -54,26 +54,26 @@ export default function (state = initialState, action) {
5454
let remoteName = action.remoteName;
5555
let remotePath = action.remotePath;
5656

57-
if (!remoteName) remoteName = "";
58-
if (!remotePath) remotePath = "";
59-
const data = {
60-
remoteName: remoteName,
61-
remotePath: remotePath
62-
};
63-
64-
let visibilityFilter = state.visibilityFilters[id];
65-
let gridMode = state.gridMode[id];
66-
67-
let searchQuery = "";
68-
let loadImages = state.loadImages[id];
69-
if (!loadImages) loadImages = false;
70-
71-
let sortFilterAscending = state.sortFiltersAscending[id];
72-
if(!sortFilterAscending) sortFilterAscending = true;
73-
let sortFilter = state.sortFilters[id];
74-
if(!sortFilter) sortFilter = "name";
75-
76-
switch (action.type) {
57+
if (!remoteName) remoteName = "";
58+
if (!remotePath) remotePath = "";
59+
const data = {
60+
remoteName: remoteName,
61+
remotePath: remotePath
62+
};
63+
64+
let visibilityFilter = state.visibilityFilters[id];
65+
let gridMode = state.gridMode[id];
66+
if (!gridMode) gridMode = "list";
67+
let searchQuery = "";
68+
let loadImages = state.loadImages[id];
69+
if (!loadImages) loadImages = false;
70+
71+
let sortFilterAscending = state.sortFiltersAscending[id];
72+
if (!sortFilterAscending) sortFilterAscending = true;
73+
let sortFilter = state.sortFilters[id];
74+
if (!sortFilter) sortFilter = "name";
75+
76+
switch (action.type) {
7777
case CHANGE_PATH:
7878
backStack.push(data);
7979
break;

0 commit comments

Comments
 (0)