@@ -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