File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,7 @@ const Config = {
164
164
} ,
165
165
166
166
saveObject < T > ( key : string , value : T ) {
167
+ this . _cache [ key ] = value ;
167
168
localStorage . setItem ( key , JSON . stringify ( value ) ) ;
168
169
} ,
169
170
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ export const dispatchToggleTheme: Dispatcher =
195
195
export const dispatchPanelLayoutChange = ( changes : Partial < PanelState > ) : Dispatcher => (
196
196
( dispatch : DispatchFn , getState : StateProvider ) => {
197
197
const { panel } = getState ( ) ;
198
- config . panelLayout = { ...config . panelLayout , ...panel } ;
198
+ config . panelLayout = { ...panel , ...changes } ;
199
199
dispatch ( newPanelStateChangeAction ( changes ) ) ;
200
200
}
201
201
) ;
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ export const getInitialState = (): State => ({
148
148
useSystemTheme : localConfig . useSystemTheme ,
149
149
} ,
150
150
monaco : config . monacoSettings ,
151
- panel : defaultPanelProps
151
+ panel : localConfig . panelLayout
152
152
} ) ;
153
153
154
154
export const createRootReducer = history => combineReducers ( {
You can’t perform that action at this time.
0 commit comments